public async Task ThenTheStatusShouldBeBadRequest()
        {
            // Arrange
            var callRequirements =
                new CallRequirements("api/accounts/%20/legalentities");

            // Act
            var response = await ApiIntegrationTester.InvokeIsolatedGetAsync(callRequirements);

            // Assert
            response.ExpectControllerType(typeof(LegalEntitiesController));
            response.ExpectValidationError();
        }
Exemplo n.º 2
0
        public async Task ThenTheStatusShouldBeOk()
        {
            // Arrange
            var call = new CallRequirements("api/HealthCheck");

            // Act
            var response = await ApiIntegrationTester.InvokeIsolatedGetAsync(call);

            // Assert

            response.ExpectStatusCodes(HttpStatusCode.OK);
            Assert.Pass("Verified we got OK");
        }