public new virtual void SetUp() { base.SetUp(); ApplicationService.GetByOrganisationId().Returns(_applicationsFromService); OrganisationService.Get().Returns(_organisationFromService); LabelCollectionRetriever.Get("DashboardPage").Returns(_labelsFromCollectionRetriever); _result = DashboardViewModelGetter.Get(); }
public virtual void SetUp() { OrganisationService = Substitute.For <IOrganisationService>(); FormsAuthenticationService = Substitute.For <IFormsAuthenticationService>(); ApplicationService = Substitute.For <IApplicationService>(); LabelCollectionRetriever = Substitute.For <ILabelCollectionRetriever>(); DashboardViewModelGetter = new DashboardViewModelGetter(ApplicationService, LabelCollectionRetriever, OrganisationService); }
public new virtual void SetUp() { base.SetUp(); DashboardViewModelGetter.Get().Returns(x => { throw new OrganisationIdNotValidException(); }); _result = (RedirectToRouteResult)DashboardController.Index(); }
public new virtual void SetUp() { base.SetUp(); DashboardViewModelGetter.Get().Returns(_modelFromGetter); _result = (ViewResult)DashboardController.Index(); }