Beispiel #1
0
        public void TestMethodOutputValidation1()
        {
            var checkInput = new CheckInputModel()
            {
                Amount = 1
            };
            CheckOutputModel output = ((ObjectResult)controller.Post(checkInput)).Value as CheckOutputModel;

            output.AmountInWords.Replace(" ", "").ToUpper().Replace("ONLY", "").Should().Be("ONEDOLLARS");
        }
Beispiel #2
0
        public void Post_Success()
        {
            var model = GetCheckRequest();

            var result = _controller.Post(model);

            Assert.NotNull(result);

            _checkServiceMock
            .Verify(x => x.ProcceedBackgroundCheck(model), Times.Once);
        }