public void Get_OnInvoke_ReturnsExpectedMessage()
        {
            var result = _controller.Get().Result as OkObjectResult;

            result.StatusCode.Should().Be(StatusCodes.Status200OK);
            result.Value.Should().Be("Paymentsense Coding Challenge!");
        }
Example #2
0
        public void Get_OnInvoke_ReturnsExpectedMessage()
        {
            var controller = new PaymentsenseCodingChallengeController();

            var result = controller.Get().Result as OkObjectResult;

            result.StatusCode.Should().Be(StatusCodes.Status200OK);
            var countries = result.Value.Should().BeAssignableTo <IEnumerable <Country> >();
        }
Example #3
0
        public void Get_OnInvoke_ReturnsExpectedMessage()
        {
            // arrange
            var controller = new PaymentsenseCodingChallengeController();

            // act
            var result = controller.Get().Result as OkObjectResult;

            // assert
            result.StatusCode.Should().Be(StatusCodes.Status200OK);
            result.Value.Should().Be("Paymentsense Coding Challenge!");
        }