Exemple #1
0
        public void ThenIShouldBeShownTheTransfersPage()
        {
            var result = _controller.Index() as ViewResult;

            Assert.That(result, Is.Not.Null);
            Assert.That(result.ViewName, Is.EqualTo(""));
            Assert.That(result.Model, Is.Null);
        }
        public async Task ThenIShouldBeShownTheTransfersPage()
        {
            // Arrange
            _mediatorMock
            .Setup(mock => mock.SendAsync(It.IsAny <GetEmployerAccountDetailByHashedIdQuery>()))
            .ReturnsAsync(new GetEmployerAccountDetailByHashedIdResponse {
                Account = new AccountDetail()
            });

            //Act
            var result = await _controller.Index(new GetEmployerAccountDetailByHashedIdQuery { HashedAccountId = "ACC123" }) as ViewResult;

            // Assert
            Assert.That(result, Is.Not.Null);
            Assert.That(result.ViewName, Is.EqualTo(""));
            Assert.That(result.Model, Is.Null);
        }