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; }
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 ObligatedReceivedWeeeRequestCreatorTests() { requestCreator = new ObligatedReceivedWeeeRequestCreator(); calculator = new CategoryValueTotalCalculator(); }