public ClientTests() { var builder = new ConfigurationBuilder(); builder.AddUserSecrets <ClientTests>(); var configuration = builder.Build(); this.mockHttpMessageHandler = new Mock <HttpMessageHandler>(); this.loggerMock = new Mock <ILogger <FulfillmentClient> >(); var options = new SecuredFulfillmentClientConfiguration { FulfillmentService = new FulfillmentClientConfiguration { BaseUri = MockUri, ApiVersion = MockApiVersion }, AzureActiveDirectory = new AuthenticationConfiguration { ClientId = Guid.Parse("84aca647-1340-454b-923c-a21a9003b28e"), AppKey = configuration["FulfillmentClient:AzureActiveDirectory:AppKey"], TenantId = Guid.Parse(configuration["FulfillmentClient:AzureActiveDirectory:TenantId"]) } }; this.client = new FulfillmentClient(this.mockHttpMessageHandler.Object, options, null, this.loggerMock.Object); }
public MockApiTests() { this.loggerMock = new Mock <ILogger <FulfillmentClient> >(); var configuration = new FulfillmentClientConfiguration { BaseUri = MockUri, ApiVersion = MockApiVersion }; this.client = new FulfillmentClient(configuration, this.loggerMock.Object); }
public ClientTests() { this.mockHttpMessageHandler = new Mock <HttpMessageHandler>(); this.loggerMock = new Mock <ILogger <FulfillmentClient> >(); var configuration = new FulfillmentClientConfiguration { BaseUri = MockUri, ApiVersion = MockApiVersion }; this.client = new FulfillmentClient(this.mockHttpMessageHandler.Object, configuration, this.loggerMock.Object); }