예제 #1
0
 public AzureWebJobsHealthCheckService(IOptions <EssFulfilmentStorageConfiguration> essFulfilmentStorageConfiguration,
                                       IWebJobsAccessKeyProvider webJobsAccessKeyProvider,
                                       IWebHostEnvironment webHostEnvironment,
                                       IAzureBlobStorageService azureBlobStorageService,
                                       IAzureWebJobsHealthCheckClient azureWebJobsHealthCheckClient)
 {
     this.essFulfilmentStorageConfiguration = essFulfilmentStorageConfiguration;
     this.webJobsAccessKeyProvider          = webJobsAccessKeyProvider;
     this.webHostEnvironment            = webHostEnvironment;
     this.azureBlobStorageService       = azureBlobStorageService;
     this.azureWebJobsHealthCheckClient = azureWebJobsHealthCheckClient;
 }
예제 #2
0
        public void Setup()
        {
            this.fakeEssFulfilmentStorageConfiguration = Options.Create(new EssFulfilmentStorageConfiguration()
            {
                ExchangeSetTypes = "sxs,mxs,lxs"
            });
            this.fakeWebJobsAccessKeyProvider      = A.Fake <IWebJobsAccessKeyProvider>();
            this.fakeWebHostEnvironment            = A.Fake <IWebHostEnvironment>();
            this.fakeAzureBlobStorageService       = A.Fake <IAzureBlobStorageService>();
            this.fakeAzureWebJobsHealthCheckClient = A.Fake <IAzureWebJobsHealthCheckClient>();

            azureWebJobsHealthCheckService = new AzureWebJobsHealthCheckService(fakeEssFulfilmentStorageConfiguration, fakeWebJobsAccessKeyProvider, fakeWebHostEnvironment, fakeAzureBlobStorageService, fakeAzureWebJobsHealthCheckClient);
        }