public IntegrationTestsFixture()
        {
            var testServer = new TestServer(Program.CreateWebHostBuilder(new string[] { }));
            var httpClient = testServer.CreateClient();

            ChatServiceClient = new ChatServiceClient(httpClient);
        }
예제 #2
0
        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)
            });
        }
예제 #3
0
 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;
 }