This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Solution extends TestSetting { | |
private clickEventHandler:any; | |
public addEventListener() { | |
this.removeEventListener(); | |
if (this.element == null) { | |
return; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class UseDefinedMethodWhichReturnsEventHandler extends TestSetting { | |
public addEventListener() { | |
this.removeEventListener(); | |
if (this.element == null) { | |
return; | |
} | |
this.element.addEventListener("click", this.onClickEventHandler); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class UseAnonymousEventHandler extends TestSetting { | |
public addEventListener() { | |
this.removeEventListener(); | |
if (this.element == null) { | |
return; | |
} | |
this.element.addEventListener("click", () => { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class UseDefinedEventHandler extends TestSetting { | |
public addEventListener() { | |
this.removeEventListener(); | |
if (this.element == null) { | |
return; | |
} | |
this.element.addEventListener("click", this.onClickEventHandler); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class TestSetting { | |
protected element:HTMLElement | null; | |
constructor () { | |
let div = document.createElement('div'); | |
div.setAttribute('id', 'elementToClick'); | |
document.body.appendChild(div); | |
this.element = document.getElementById('elementToClick'); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Name | Value | Scope | |
---|---|---|---|
DOMAIN_URL_BASE_NAME | notifier.com | Release | |
DOMAIN_URL_SUFFIX | -acc | acc | |
DOMAIN_URL_SUFFIX | -prd | prd | |
ENVIRONMENT | acc | acc | |
ENVIRONMENT | prd | prd | |
RELEASE_ARTIFACTS_BUILD_NOTIFIER_BUILDID | $(Build.BuildId) | Release | |
ApplicationInsights__InstrumentationKey | $(ApplicationInsights — InstrumentationKey) | Release | |
EventHubSettings__ConnectionString | $(EventHubSettings — ConnectionString) | Release | |
StorageSettings__ConnectionString | $(StorageSettings — ConnectionString) | Release |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Microsoft.AspNetCore.Mvc; | |
using Microsoft.AspNetCore.Routing; | |
using Microsoft.Extensions.Logging; | |
using Notifier.WebApi.Models; | |
using Notifier.WebApi.Services; | |
using System.Threading; | |
using System.Threading.Tasks; | |
namespace Notifier.WebApi.Controllers | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
steps: | |
- checkout: self | |
- checkout: Common | |
- task: Docker@1 | |
displayName: Build Image ACC | |
inputs: | |
containerregistrytype: $(ContainerRegistryType) | |
azureSubscriptionEndpoint: $(ServiceConnectionEndpoint) | |
azureContainerRegistry: 'notifiercontainerregistryacc.azurecr.io' | |
command: 'Build an image' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
trigger: | |
branches: | |
include: | |
- master | |
resources: | |
repositories: | |
- repository: self | |
- repository: Common | |
type: git |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
trigger: | |
- master | |
resources: | |
repositories: | |
- repository: self | |
pool: | |
vmImage: 'ubuntu-latest' |
NewerOlder