Пример #1
0
 public HomeController(IWeeeCache cache, BreadcrumbService breadcrumb, Func <IWeeeClient> client, IMap <AatfDataToHomeViewModelMapTransfer, HomeViewModel> mapper)
 {
     this.apiClient  = client;
     this.breadcrumb = breadcrumb;
     this.cache      = cache;
     this.mapper     = mapper;
 }
Пример #2
0
 public SelectYourPcsController(Func <IWeeeClient> apiclient, BreadcrumbService breadcrumb, IWeeeCache cache, IAddReturnSchemeRequestCreator requestCreator)
 {
     this.apiClient      = apiclient;
     this.breadcrumb     = breadcrumb;
     this.cache          = cache;
     this.requestCreator = requestCreator;
 }
 public SubmissionsController(BreadcrumbService breadcrumb, Func <IWeeeClient> client, IWeeeCache cache, CsvWriterFactory csvWriterFactory)
 {
     this.breadcrumb       = breadcrumb;
     this.apiClient        = client;
     this.cache            = cache;
     this.csvWriterFactory = csvWriterFactory;
 }
 public ProducersControllerTests()
 {
     breadcumbService = A.Fake<BreadcrumbService>();
     producerSearcher = A.Fake<ISearcher<ProducerSearchResult>>();
     weeeClient = A.Fake<IWeeeClient>();
     cache = A.Fake<IWeeeCache>();
 }
Пример #5
0
 public SentOnRemoveSiteController(Func <IWeeeClient> apiClient, BreadcrumbService breadcrumb, IWeeeCache cache, IMap <ReturnAndAatfToSentOnRemoveSiteViewModelMapTransfer, SentOnRemoveSiteViewModel> mapper)
 {
     this.apiClient  = apiClient;
     this.breadcrumb = breadcrumb;
     this.cache      = cache;
     this.mapper     = mapper;
 }
Пример #6
0
 public ReturnsController(Func <IWeeeClient> apiClient, BreadcrumbService breadcrumb, IWeeeCache cache, IMapper mapper)
 {
     this.apiClient  = apiClient;
     this.breadcrumb = breadcrumb;
     this.cache      = cache;
     this.mapper     = mapper;
 }
 public ManageCacheController(
     IWeeeCache cache,
     BreadcrumbService breadcrumb)
 {
     this.cache = cache;
     this.breadcrumb = breadcrumb;
 }
Пример #8
0
 public ManageCacheController(
     IWeeeCache cache,
     BreadcrumbService breadcrumb)
 {
     this.cache      = cache;
     this.breadcrumb = breadcrumb;
 }
 public SubmissionsController(BreadcrumbService breadcrumb, Func<IWeeeClient> client, IWeeeCache cache, CsvWriterFactory csvWriterFactory)
 {
     this.breadcrumb = breadcrumb;
     this.apiClient = client;
     this.cache = cache;
     this.csvWriterFactory = csvWriterFactory;
 }
 public SchemeController(Func<IWeeeClient> apiClient, IWeeeCache cache, BreadcrumbService breadcrumb, IMapper mapper)
 {
     this.apiClient = apiClient;
     this.cache = cache;
     this.breadcrumb = breadcrumb;
     this.mapper = mapper;
 }
 public ProducersController(BreadcrumbService breadcrumb, ISearcher<ProducerSearchResult> producerSearcher, Func<IWeeeClient> apiClient, IWeeeCache cache)
 {
     this.breadcrumb = breadcrumb;
     this.producerSearcher = producerSearcher;
     this.apiClient = apiClient;
     this.cache = cache;
 }
Пример #12
0
 public ReusedOffSiteSummaryListController(Func <IWeeeClient> apiClient, BreadcrumbService breadcrumb, IWeeeCache cache, IMapper mapper)
 {
     this.apiClient  = apiClient;
     this.breadcrumb = breadcrumb;
     this.cache      = cache;
     this.mapper     = mapper;
 }
Пример #13
0
 public HomeController(Func<IWeeeClient> apiClient, IWeeeCache cache, BreadcrumbService breadcrumb, CsvWriterFactory csvWriterFactory, ConfigurationService configService)
 {
     this.apiClient = apiClient;
     this.cache = cache;
     this.breadcrumb = breadcrumb;
     this.csvWriterFactory = csvWriterFactory;
     this.configurationService = configService;
 }
Пример #14
0
 public SentOnCreateSiteController(Func <IWeeeClient> apiClient, BreadcrumbService breadcrumb, IWeeeCache cache, IAddSentOnAatfSiteRequestCreator requestCreator, IMap <ReturnAndAatfToSentOnCreateSiteViewModelMapTransfer, SentOnCreateSiteViewModel> mapper)
 {
     this.apiClient      = apiClient;
     this.breadcrumb     = breadcrumb;
     this.cache          = cache;
     this.requestCreator = requestCreator;
     this.mapper         = mapper;
 }
Пример #15
0
 public HomeController(Func <IWeeeClient> apiClient, IWeeeCache cache, BreadcrumbService breadcrumb, CsvWriterFactory csvWriterFactory, ConfigurationService configService)
 {
     this.apiClient            = apiClient;
     this.cache                = cache;
     this.breadcrumb           = breadcrumb;
     this.csvWriterFactory     = csvWriterFactory;
     this.configurationService = configService;
 }
Пример #16
0
        public ObligatedValuesCopyPasteControllerTests()
        {
            breadcrumb = A.Fake <BreadcrumbService>();
            cache      = A.Fake <IWeeeCache>();
            weeeClient = weeeClient = A.Fake <IWeeeClient>();

            controller = new ObligatedValuesCopyPasteController(() => weeeClient, breadcrumb, cache);
        }
Пример #17
0
 public ObligatedReceivedController(IWeeeCache cache, BreadcrumbService breadcrumb, Func <IWeeeClient> apiClient, IObligatedReceivedWeeeRequestCreator requestCreator, IMap <ReturnToObligatedViewModelMapTransfer, ObligatedViewModel> mapper)
 {
     this.apiClient      = apiClient;
     this.requestCreator = requestCreator;
     this.mapper         = mapper;
     this.breadcrumb     = breadcrumb;
     this.cache          = cache;
 }
Пример #18
0
        public ReusedOffSiteControllerTests()
        {
            weeeClient = A.Fake <IWeeeClient>();
            breadcrumb = A.Fake <BreadcrumbService>();
            cache      = A.Fake <IWeeeCache>();

            controller = new ReusedOffSiteController(() => weeeClient, breadcrumb, cache);
        }
Пример #19
0
 public ContactDetailsController(IWeeeCache cache, BreadcrumbService breadcrumb, Func <IWeeeClient> client, IMapper mapper, IEditAatfContactRequestCreator contactRequestCreator)
 {
     this.apiClient             = client;
     this.mapper                = mapper;
     this.contactRequestCreator = contactRequestCreator;
     this.breadcrumb            = breadcrumb;
     this.cache = cache;
 }
Пример #20
0
        public ReturnToNonObligatedViewModelMapTests()
        {
            cache          = A.Fake <IWeeeCache>();
            categoryMap    = A.Fake <IMap <NonObligatedDataToNonObligatedValueMapTransfer, IList <NonObligatedCategoryValue> > >();
            calculator     = A.Fake <ICategoryValueTotalCalculator>();
            pasteProcessor = A.Fake <IPasteProcessor>();

            mapper = new ReturnToNonObligatedValuesViewModelMap(cache, categoryMap, calculator, pasteProcessor);
        }
Пример #21
0
        public ReceivedPcsListControllerTests()
        {
            weeeClient = A.Fake <IWeeeClient>();
            breadcrumb = A.Fake <BreadcrumbService>();
            mapper     = A.Fake <IMap <ReturnAndSchemeDataToReceivedPcsViewModelMapTransfer, ReceivedPcsListViewModel> >();
            cache      = A.Fake <IWeeeCache>();

            controller = new ReceivedPcsListController(() => weeeClient, cache, breadcrumb, mapper);
        }
Пример #22
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);
 }
Пример #23
0
        public SubmittedReturnControllerTests()
        {
            weeeClient = A.Fake <IWeeeClient>();
            breadcrumb = A.Fake <BreadcrumbService>();
            mapper     = A.Fake <IMapper>();
            cache      = A.Fake <IWeeeCache>();

            controller = new SubmittedReturnController(() => weeeClient, cache, breadcrumb, mapper);
        }
Пример #24
0
        public ReusedOffSiteSummaryListControllerTests()
        {
            weeeClient = A.Fake <IWeeeClient>();
            breadcrumb = A.Fake <BreadcrumbService>();
            cache      = A.Fake <IWeeeCache>();
            mapper     = A.Fake <IMapper>();

            controller = new ReusedOffSiteSummaryListController(() => weeeClient, breadcrumb, cache, mapper);
        }
        public ReusedRemoveSiteControllerTests()
        {
            this.apiClient  = A.Fake <IWeeeClient>();
            this.breadcrumb = A.Fake <BreadcrumbService>();
            this.cache      = A.Fake <IWeeeCache>();
            this.mapper     = A.Fake <IMap <ReturnAndAatfToReusedRemoveSiteViewModelMapTransfer, ReusedRemoveSiteViewModel> >();

            controller = new ReusedRemoveSiteController(() => apiClient, breadcrumb, cache, mapper);
        }
        public SentOnSiteSummaryListControllerTests()
        {
            this.apiClient  = A.Fake <IWeeeClient>();
            this.breadcrumb = A.Fake <BreadcrumbService>();
            this.cache      = A.Fake <IWeeeCache>();
            this.mapper     = A.Fake <IMap <ReturnAndAatfToSentOnSummaryListViewModelMapTransfer, SentOnSiteSummaryListViewModel> >();

            controller = new SentOnSiteSummaryListController(() => apiClient, breadcrumb, cache, mapper);
        }
Пример #27
0
        public SentOnCreateSiteControllerTests()
        {
            apiClient      = A.Fake <IWeeeClient>();
            breadcrumb     = A.Fake <BreadcrumbService>();
            cache          = A.Fake <IWeeeCache>();
            requestCreator = A.Fake <IAddSentOnAatfSiteRequestCreator>();
            mapper         = A.Fake <IMap <ReturnAndAatfToSentOnCreateSiteViewModelMapTransfer, SentOnCreateSiteViewModel> >();

            controller = new SentOnCreateSiteController(() => apiClient, breadcrumb, cache, requestCreator, mapper);
        }
Пример #28
0
 public ReceivedPcsListController(Func <IWeeeClient> apiClient,
                                  IWeeeCache cache,
                                  BreadcrumbService breadcrumb,
                                  IMap <ReturnAndSchemeDataToReceivedPcsViewModelMapTransfer, ReceivedPcsListViewModel> mapper)
 {
     this.apiClient  = apiClient;
     this.cache      = cache;
     this.breadcrumb = breadcrumb;
     this.mapper     = mapper;
 }
Пример #29
0
        public ProducersControllerTests()
        {
            breadcumbService     = A.Fake <BreadcrumbService>();
            producerSearcher     = A.Fake <ISearcher <ProducerSearchResult> >();
            weeeClient           = A.Fake <IWeeeClient>();
            cache                = A.Fake <IWeeeCache>();
            configurationService = A.Fake <ConfigurationService>();

            A.CallTo(() => configurationService.CurrentConfiguration.MaximumProducerOrganisationSearchResults).Returns(10);
        }
        public SelectReportOptionsNilControllerTests()
        {
            weeeClient     = A.Fake <IWeeeClient>();
            breadcrumb     = A.Fake <BreadcrumbService>();
            cache          = A.Fake <IWeeeCache>();
            mapper         = A.Fake <IMap <ReturnDataToSelectReportOptionsNilViewModelMapTransfer, SelectReportOptionsNilViewModel> >();
            requestCreator = A.Fake <IDeleteReturnDataRequestCreator>();

            controller = new SelectReportOptionsNilController(() => weeeClient, breadcrumb, cache, mapper, requestCreator);
        }
        public SelectYourPcsControllerTests()
        {
            weeeClient     = A.Fake <IWeeeClient>();
            breadcrumb     = A.Fake <BreadcrumbService>();
            cache          = A.Fake <IWeeeCache>();
            requestCreator = A.Fake <IAddReturnSchemeRequestCreator>();
            fixture        = new Fixture();

            controller = new SelectYourPcsController(() => weeeClient, breadcrumb, cache, requestCreator);
        }
Пример #32
0
        public AddAatfControllerTests()
        {
            fixture           = new Fixture();
            weeeClient        = A.Fake <IWeeeClient>();
            countries         = A.Dummy <IList <CountryData> >();
            breadcrumbService = A.Fake <BreadcrumbService>();
            cache             = A.Fake <IWeeeCache>();
            validationWrapper = A.Fake <IFacilityViewModelBaseValidatorWrapper>();

            controller = new AddAatfController(() => weeeClient, breadcrumbService, cache, validationWrapper);
        }
        public SelectReportOptionsDeselectControllerTests()
        {
            weeeClient     = A.Fake <IWeeeClient>();
            breadcrumb     = A.Fake <BreadcrumbService>();
            cache          = A.Fake <IWeeeCache>();
            requestCreator = A.Fake <IAddSelectReportOptionsRequestCreator>();
            mapper         = A.Fake <IMap <SelectReportOptionsViewModel, SelectReportOptionsDeselectViewModel> >();
            fixture        = new Fixture();

            controller = new SelectReportOptionsDeselectController(() => weeeClient, breadcrumb, cache, requestCreator, mapper);
        }
 public ReturnToObligatedViewModelMap(IWeeeCache cache,
                                      IMap <ObligatedDataToObligatedValueMapTransfer,
                                            IList <ObligatedCategoryValue> > obligatedMap,
                                      ICategoryValueTotalCalculator calculator,
                                      IPasteProcessor pasteProcessor)
 {
     this.cache          = cache;
     this.obligatedMap   = obligatedMap;
     this.calculator     = calculator;
     this.pasteProcessor = pasteProcessor;
 }
Пример #35
0
 public AddAatfController(
     Func <IWeeeClient> apiClient,
     BreadcrumbService breadcrumb,
     IWeeeCache cache,
     IFacilityViewModelBaseValidatorWrapper validationWrapper)
 {
     this.apiClient         = apiClient;
     this.breadcrumb        = breadcrumb;
     this.cache             = cache;
     this.validationWrapper = validationWrapper;
 }
        public ObligatedReceivedControllerTests()
        {
            weeeClient     = A.Fake <IWeeeClient>();
            requestCreator = A.Fake <IObligatedReceivedWeeeRequestCreator>();
            breadcrumb     = A.Fake <BreadcrumbService>();
            cache          = A.Fake <IWeeeCache>();
            mapper         = A.Fake <IMap <ReturnToObligatedViewModelMapTransfer, ObligatedViewModel> >();
            calculator     = A.Fake <ICategoryValueTotalCalculator>();

            controller = new ObligatedReceivedController(cache, breadcrumb, () => weeeClient, requestCreator, mapper);
        }
 public MemberRegistrationController(
     Func<IWeeeClient> apiClient,
     IWeeeCache cache,
     BreadcrumbService breadcrumb,
     CsvWriterFactory csvWriterFactory,
     IMapper mapper)
 {
     this.apiClient = apiClient;
     this.cache = cache;
     this.breadcrumb = breadcrumb;
     this.csvWriterFactory = csvWriterFactory;
     this.mapper = mapper;
 }
 public DataReturnsController(
     Func<IWeeeClient> apiClient,
     IWeeeCache cache,
     BreadcrumbService breadcrumb,
     CsvWriterFactory csvWriterFactory,
     IMapper mapper,
     ConfigurationService configService)
 {
     this.apiClient = apiClient;
     this.cache = cache;
     this.breadcrumb = breadcrumb;
     this.csvWriterFactory = csvWriterFactory;
     this.mapper = mapper;
     this.configService = configService;
 }
Пример #39
0
 public UserController(Func<IWeeeClient> apiClient, IWeeeCache cache, BreadcrumbService breadcrumb)
 {
     this.apiClient = apiClient;
     this.cache = cache;
     this.breadcrumb = breadcrumb;
 }
Пример #40
0
 public HomeController(BreadcrumbService breadcrumb, IWeeeCache cache)
 {
     this.breadcrumb = breadcrumb;
     this.cache = cache;
 }
 public FakeDataReturnsController(
     IWeeeClient apiClient,
     IWeeeCache cache,
     BreadcrumbService breadcrumb,
     CsvWriterFactory csvWriterFactory,
     IMapper mapper,
     ConfigurationService configurationService)
     : base(() => apiClient,
     cache,
     breadcrumb,
     csvWriterFactory,
      mapper,
      configurationService)
 {
     ApiClient = apiClient;
 }
 public FakeMemberRegistrationController(
     IWeeeClient apiClient,
     IWeeeCache cache,
     BreadcrumbService breadcrumb,
     CsvWriterFactory csvWriterFactory,
     IMapper mapper)
     : base(() => apiClient,
     cache,
     breadcrumb,
     csvWriterFactory,
      mapper)
 {
     ApiClient = apiClient;
 }