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; }
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); }
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; }
public EditAatfContactRequestCreatorTests() { this.requestCreator = new EditAatfContactRequestCreator(); }