public async Task Given_a_service_path_check_is_blocked_get_verb(string pathService) { //Arrange all var service = new ServicePath() { Path = pathService }; // Arrange Block Services await _client.PostAsync(string.Concat(UrlHost, "api/farfetch/v1/gateway/blockservice"), service); // Act var resultValue = await _client.GetAsync <object>(string.Concat(UrlHost, pathService)); // Assert Assert.IsTrue(resultValue.ToString().Contains("503 - Service Unavailable")); //Arrange UnblockService await _client.PostAsync(string.Concat(UrlHost, "api/farfetch/v1/gateway/unblockservice"), service); }
public async Task Given_a_multiplication_service_by_10_should_be_multiplied_correctly(string pathService, object expectedResult) { var result = await _client.GetAsync <object>(string.Concat(UrlHost, pathService)); Assert.That(result, Is.EqualTo(expectedResult)); }