public void SuccessTest() { var emptyMyApplicationsView = new MyApplicationsViewModel(new List <MyApprenticeshipApplicationViewModel>(), new List <MyTraineeshipApplicationViewModel>(), new TraineeshipFeatureViewModel(), null); var apprenticeshipApplicationProviderMock = new Mock <IApprenticeshipApplicationProvider>(); apprenticeshipApplicationProviderMock.Setup(x => x.GetMyApplications(It.IsAny <Guid>())).Returns(emptyMyApplicationsView); var accountMediator = new AccountMediatorBuilder().With(apprenticeshipApplicationProviderMock).Build(); var response = accountMediator.Index(Guid.NewGuid(), "deletedVacancyId", "deletedVacancyTitle"); response.Code.Should().Be(AccountMediatorCodes.Index.Success); response.ViewModel.Should().Be(emptyMyApplicationsView); response.ViewModel.DeletedVacancyId.Should().Be("deletedVacancyId"); response.ViewModel.DeletedVacancyTitle.Should().Be("deletedVacancyTitle"); }