public void ThenReturnsView()
        {
            //Act
            var result = _sut.ConfirmRestart(_request) as ViewResult;

            //Assert
            Assert.NotNull(result);
            Assert.AreEqual(typeof(DatalockConfirmRestartViewModel), result.Model.GetType());
        }
Esempio n. 2
0
        public void Then_TriageDataLocks_Api_Called()
        {
            //Arrange
            _viewModel.SendRequestToEmployer = true;

            //Act
            var result = _sut.ConfirmRestart(_viewModel);

            //Assert
            _mockCommitmentsApiClient.Verify(x => x.TriageDataLocks(It.IsAny <long>(), It.IsAny <TriageDataLocksRequest>(), It.IsAny <CancellationToken>()), Times.Once);
        }