Esempio n. 1
0
 public ReusedOffSiteCreateSiteControllerTests()
 {
     weeeClient     = A.Fake <IWeeeClient>();
     breadcrumb     = A.Fake <BreadcrumbService>();
     cache          = A.Fake <IWeeeCache>();
     requestCreator = A.Fake <IObligatedReusedSiteRequestCreator>();
     mapper         = A.Fake <IMap <SiteAddressDataToReusedOffSiteCreateSiteViewModelMapTransfer, ReusedOffSiteCreateSiteViewModel> >();
     controller     = new ReusedOffSiteCreateSiteController(() => weeeClient, breadcrumb, cache, requestCreator, mapper);
 }
 public ReusedOffSiteCreateSiteController(
     Func <IWeeeClient> apiClient,
     BreadcrumbService breadcrumb,
     IWeeeCache cache,
     IObligatedReusedSiteRequestCreator requestCreator,
     IMap <SiteAddressDataToReusedOffSiteCreateSiteViewModelMapTransfer, ReusedOffSiteCreateSiteViewModel> mapper)
 {
     this.apiClient      = apiClient;
     this.breadcrumb     = breadcrumb;
     this.cache          = cache;
     this.requestCreator = requestCreator;
     this.mapper         = mapper;
 }
 public ObligatedReusedSiteRequestCreatorTests()
 {
     requestCreator = new ObligatedReusedSiteRequestCreator();
 }