public void Setup() { fakeEssWebhookService = A.Fake <IEssWebhookService>(); fakeHttpContextAccessor = A.Fake <IHttpContextAccessor>(); fakeLogger = A.Fake <ILogger <EssWebhookController> >(); fakeAzureAdB2CHelper = A.Fake <IAzureAdB2CHelper>(); fakeWebHookController = new EssWebhookController(fakeHttpContextAccessor, fakeLogger, fakeEssWebhookService, fakeAzureAdB2CHelper); }
public EssWebhookController(IHttpContextAccessor contextAccessor, ILogger <EssWebhookController> logger, IEssWebhookService essWebhookService, IAzureAdB2CHelper azureAdB2CHelper) : base(contextAccessor, logger) { this.essWebhookService = essWebhookService; this.azureAdB2CHelper = azureAdB2CHelper; }
public void Setup() { fakeLogger = A.Fake <ILogger <AzureAdB2CHelper> >(); fakeAzureAdB2CConfig = A.Fake <IOptions <AzureAdB2CConfiguration> >(); fakeAzureAdConfig = A.Fake <IOptions <AzureADConfiguration> >(); fakeAzureAdB2CConfig.Value.ClientId = "9bca00f0-20d9-4b38-88eb-c7aff6b0f571"; fakeAzureAdB2CConfig.Value.Instance = "https://gk.microsoft.com/"; fakeAzureAdB2CConfig.Value.TenantId = "0b29766b-896f-46df-8f1a-122d7c000d91"; fakeAzureAdConfig.Value.MicrosoftOnlineLoginUrl = "https://www.microsoft.com/"; fakeAzureAdB2CHelper = new AzureAdB2CHelper(fakeLogger, fakeAzureAdB2CConfig, fakeAzureAdConfig); }
public ProductDataService(IProductIdentifierValidator productIdentifierValidator, IProductDataProductVersionsValidator productVersionsValidator, IProductDataSinceDateTimeValidator productDataSinceDateTimeValidator, ISalesCatalogueService salesCatalougeService, IMapper mapper, IFileShareService fileShareService, ILogger <FileShareService> logger, IExchangeSetStorageProvider exchangeSetStorageProvider, IOptions <EssFulfilmentStorageConfiguration> essFulfilmentStorageconfig, IMonitorHelper monitorHelper, UserIdentifier userIdentifier, IAzureAdB2CHelper azureAdB2CHelper) { this.productIdentifierValidator = productIdentifierValidator; this.productVersionsValidator = productVersionsValidator; this.productDataSinceDateTimeValidator = productDataSinceDateTimeValidator; this.salesCatalogueService = salesCatalougeService; this.mapper = mapper; this.fileShareService = fileShareService; this.logger = logger; this.exchangeSetStorageProvider = exchangeSetStorageProvider; this.essFulfilmentStorageconfig = essFulfilmentStorageconfig; this.monitorHelper = monitorHelper; this.userIdentifier = userIdentifier; this.azureAdB2CHelper = azureAdB2CHelper; }