Esempio n. 1
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;
 }
Esempio n. 2
0
        public ContactDetailsControllerTests()
        {
            this.apiClient             = A.Fake <IWeeeClient>();
            this.breadcrumb            = A.Fake <BreadcrumbService>();
            this.cache                 = A.Fake <IWeeeCache>();
            this.mapper                = A.Fake <IMapper>();
            this.contactRequestCreator = A.Fake <IEditAatfContactRequestCreator>();
            this.fixture               = new Fixture();

            A.CallTo(() => this.apiClient.SendAsync(A <string> ._, A <GetAatfByIdExternal> ._)).Returns(this.fixture.Create <AatfData>());

            this.controller = new ContactDetailsController(this.cache, this.breadcrumb, () => this.apiClient, this.mapper, this.contactRequestCreator);
        }
Esempio n. 3
0
 public AatfController(
     Func <IWeeeClient> apiClient,
     BreadcrumbService breadcrumb,
     IMapper mapper,
     IEditFacilityDetailsRequestCreator detailsRequestCreator,
     IEditAatfContactRequestCreator contactRequestCreator,
     IWeeeCache cache,
     IFacilityViewModelBaseValidatorWrapper validationWrapper)
 {
     this.apiClient             = apiClient;
     this.breadcrumb            = breadcrumb;
     this.mapper                = mapper;
     this.detailsRequestCreator = detailsRequestCreator;
     this.contactRequestCreator = contactRequestCreator;
     this.cache             = cache;
     this.validationWrapper = validationWrapper;
 }
Esempio n. 4
0
 public EditAatfContactRequestCreatorTests()
 {
     this.requestCreator = new EditAatfContactRequestCreator();
 }