예제 #1
0
        public async Task ThenCallsModelMapper()
        {
            //Act
            await _sut.DataLockRequestRestart(_request);

            //Assert
            _modelMapperMock.Verify(x => x.Map <DataLockRequestRestartViewModel>(_request));
        }
        public void Then_Redirect_To_Details_Page()
        {
            //Act
            var result = _sut.DataLockRequestRestart(_viewModel);

            //Assert
            result.VerifyReturnsRedirectToActionResult().WithActionName("Details");
        }