public IntegrationTestsFixture() { var testServer = new TestServer(Program.CreateWebHostBuilder(new string[] { })); var httpClient = testServer.CreateClient(); ChatServiceClient = new ChatServiceClient(httpClient); }
public DeploymentTestsFixture() { string serviceUrl = Environment.GetEnvironmentVariable("ChatServiceDeploymentTestsUrl"); if (string.IsNullOrWhiteSpace(serviceUrl)) { throw new Exception("Could not find ChatServiceUrl environment variable"); } ChatServiceClient = new ChatServiceClient(new System.Net.Http.HttpClient { BaseAddress = new Uri(serviceUrl) }); }
public MessageControllerEndToEndTests(TFixture tfixture) { _chatServiceClient = tfixture.ChatServiceClient; }
public ImagesControllerEndToEndTests(IEndToEndTestsFixture fixture) { _imageServiceClient = fixture.ChatServiceClient; }
public ProfilesControllerEndToEndTests(IEndToEndTestsFixture fixture) { _chatServiceClient = fixture.ChatServiceClient; }
public ConversationControllerEndtoEndTests(TFixture tfixture) { _chatServiceClient = tfixture.ChatServiceClient; }
public ConversationsControllerEndToEndTests(IEndToEndTestsFixture fixture) { _chatServiceClient = fixture.ChatServiceClient; }