public GetReportOnQuestionHandlerTests() { dataAccess = A.Fake <IGenericDataAccess>(); authorization = A.Fake <IWeeeAuthorization>(); handler = new GetReportOnQuestionHandler(authorization, dataAccess); }
public GetPopulatedReturnTests() { returnDataAccess = A.Fake <IReturnDataAccess>(); mapper = A.Fake <IMap <ReturnQuarterWindow, ReturnData> >(); quarterWindowFactory = A.Fake <IQuarterWindowFactory>(); fetchNonObligatedWeeeDataAccess = A.Fake <INonObligatedDataAccess>(); fetchObligatedWeeeDataAccess = A.Fake <IFetchObligatedWeeeForReturnDataAccess>(); fetchAatfDataAccess = A.Fake <IFetchAatfDataAccess>(); returnSchemeDataAccess = A.Fake <IReturnSchemeDataAccess>(); genericDataAccess = A.Fake <IGenericDataAccess>(); systemDataDataAccess = A.Fake <ISystemDataDataAccess>(); populatedReturn = new GetPopulatedReturn(new AuthorizationBuilder() .AllowExternalAreaAccess() .AllowOrganisationAccess().Build(), returnDataAccess, mapper, quarterWindowFactory, fetchNonObligatedWeeeDataAccess, fetchObligatedWeeeDataAccess, fetchAatfDataAccess, returnSchemeDataAccess, genericDataAccess, systemDataDataAccess); }
public GetAatfInfoByOrganisationRequestHandlerTests() { mapper = A.Fake <IMap <Aatf, AatfData> >(); dataAccess = A.Fake <IGenericDataAccess>(); authorization = A.Fake <IWeeeAuthorization>(); handler = new GetAatfInfoByOrganisationRequestHandler(mapper, dataAccess, authorization); }
public EditSentOnAatfSiteHandler(IWeeeAuthorization authorization, IGenericDataAccess genericDataAccess, IOrganisationDetailsDataAccess orgDataAccess, IAatfSiteDataAccess offSiteDataAccess) { this.authorization = authorization; this.genericDataAccess = genericDataAccess; this.organisationDetailsDataAccess = orgDataAccess; this.offSiteDataAccess = offSiteDataAccess; }
public AatfSiteDataAccessTests() { context = A.Fake <WeeeContext>(); genericDataAccess = A.Fake <IGenericDataAccess>(); dataAccess = new AatfSiteDataAccess(context, genericDataAccess); dbContextHelper = new DbContextHelper(); aatfId = A.Dummy <Guid>(); }
public AatfDataAccess(WeeeContext context, IGenericDataAccess genericDataAccess, IQuarterWindowFactory quarterWindowFactory) { this.context = context; this.genericDataAccess = genericDataAccess; this.quarterWindowFactory = quarterWindowFactory; }
public RemoveAatfSiteHandlerTests() { this.context = A.Fake <WeeeContext>(); this.authorization = A.Fake <IWeeeAuthorization>(); this.genericDataAccess = A.Fake <IGenericDataAccess>(); handler = new RemoveAatfSiteHandler(context, authorization, genericDataAccess); }
public RemoveWeeeSentOnHandler(WeeeContext context, IWeeeAuthorization authorization, IWeeeSentOnDataAccess sentOnDataAccess, IGenericDataAccess genericDataAccess, IFetchObligatedWeeeForReturnDataAccess obligatedWeeeDataAccess) { this.context = context; this.authorization = authorization; this.sentOnDataAccess = sentOnDataAccess; this.genericDataAccess = genericDataAccess; this.obligatedWeeeDataAccess = obligatedWeeeDataAccess; }
public AddReturnReportOnHandler(IWeeeAuthorization authorization, IGenericDataAccess dataAccess, WeeeContext context) { this.authorization = authorization; this.dataAccess = dataAccess; this.context = context; }
public AddObligatedSentOnHandler(IWeeeAuthorization authorization, IObligatedSentOnDataAccess obligatedSentOnDataAccess, IGenericDataAccess genericDataAccess) { this.authorization = authorization; this.obligatedSentOnDataAccess = obligatedSentOnDataAccess; this.genericDataAccess = genericDataAccess; }
public EditObligatedSentOnHandlerTests() { authorization = A.Fake <IWeeeAuthorization>(); genericDataAccess = A.Fake <IGenericDataAccess>(); obligatedSentOnDataAccess = A.Fake <IObligatedSentOnDataAccess>(); handler = new EditObligatedSentOnHandler(authorization, obligatedSentOnDataAccess, genericDataAccess); }
public EditObligatedReceivedHandler(IWeeeAuthorization authorization, IObligatedReceivedDataAccess obligatedReceivedDataAccess, IGenericDataAccess genericDataAccess) { this.authorization = authorization; this.genericDataAccess = genericDataAccess; this.obligatedReceivedDataAccess = obligatedReceivedDataAccess; }
public AddSentOnAatfSiteHandler(IWeeeAuthorization authorization, IWeeeSentOnDataAccess sentOnDataAccess, IGenericDataAccess genericDataAccess, IReturnDataAccess returnDataAccess, IOrganisationDetailsDataAccess orgDataAccess) { this.authorization = authorization; this.sentOnDataAccess = sentOnDataAccess; this.genericDataAccess = genericDataAccess; this.returnDataAccess = returnDataAccess; this.organisationDetailsDataAccess = orgDataAccess; }
public GetPreviousQuarterSchemesHandlerTests() { var weeeAuthorization = A.Fake <IWeeeAuthorization>(); dataAccess = A.Fake <IGenericDataAccess>(); handler = new GetPreviousQuarterSchemesHandler(weeeAuthorization, dataAccess); fixture = new Fixture(); }
public AddAatfRequestHandlerTests() { addressMapper = A.Fake <IMap <AatfAddressData, AatfAddress> >(); contactMapper = A.Fake <IMap <AatfContactData, AatfContact> >(); dataAccess = A.Fake <IGenericDataAccess>(); commonDataAccess = A.Fake <ICommonDataAccess>(); handler = new AddAatfRequestHandler(AuthorizationBuilder.CreateUserWithAllRights(), dataAccess, addressMapper, contactMapper, commonDataAccess); }
public EditNonObligatedHandlerTests() { var authorization = A.Fake <IWeeeAuthorization>(); this.nonObligatedDataAccess = A.Fake <INonObligatedDataAccess>(); this.genericDataAccess = A.Fake <IGenericDataAccess>(); handler = new EditNonObligatedHandler(authorization, nonObligatedDataAccess, genericDataAccess); }
public GetAddressHandlerTests() { authorization = AuthorizationBuilder.CreateUserAllowedToAccessOrganisation(); dataAccess = A.Fake <IGenericDataAccess>(); mapper = A.Fake <IMap <Address, AddressData> >(); handler = new GetAddressHandler(authorization, dataAccess, mapper); }
public EditAatfContactHandlerTests() { this.aatfDataAccess = A.Fake <IAatfDataAccess>(); this.genericDataAccess = A.Fake <IGenericDataAccess>(); this.organisationDetailsDataAccess = A.Fake <IOrganisationDetailsDataAccess>(); fixture = new Fixture(); this.handler = new EditAatfContactHandler(new AuthorizationBuilder().AllowEverything().Build(), this.aatfDataAccess, this.genericDataAccess, this.organisationDetailsDataAccess); }
public EditObligatedReceivedHandlerTests() { var authorization = A.Fake <IWeeeAuthorization>(); addObligatedReceivedDataAccess = A.Dummy <IObligatedReceivedDataAccess>(); genericDataAccess = A.Fake <IGenericDataAccess>(); handler = new EditObligatedReceivedHandler(authorization, addObligatedReceivedDataAccess, genericDataAccess); }
public AddReturnReportOnHandlerTests() { var weeeAuthorization = A.Fake <IWeeeAuthorization>(); context = A.Fake <WeeeContext>(); dataAccess = A.Fake <IGenericDataAccess>(); fixture = new Fixture(); handler = new AddReturnReportOnHandler(weeeAuthorization, dataAccess, context); }
public AatfDataAccessTests() { fixture = new Fixture(); context = A.Fake <WeeeContext>(); dbContextHelper = new DbContextHelper(); genericDataAccess = A.Fake <IGenericDataAccess>(); quarterWindowFactory = A.Fake <IQuarterWindowFactory>(); dataAccess = new AatfDataAccess(context, genericDataAccess, quarterWindowFactory); }
public GetReturnNonObligatedCsvHandler(IWeeeAuthorization authorization, WeeeContext weeContext, IGenericDataAccess dataAccess, CsvWriterFactory csvWriterFactory) { this.authorization = authorization; this.weeContext = weeContext; this.dataAccess = dataAccess; this.csvWriterFactory = csvWriterFactory; }
public EditSentOnAatfSiteHandlerTests() { var authorization = A.Fake <IWeeeAuthorization>(); offSiteDataAccess = A.Fake <IAatfSiteDataAccess>(); genericDataAccess = A.Fake <IGenericDataAccess>(); organisationDetailsDataAccess = A.Fake <IOrganisationDetailsDataAccess>(); handler = new EditSentOnAatfSiteHandler(authorization, genericDataAccess, organisationDetailsDataAccess, offSiteDataAccess); }
public EditAatfContactHandler(IWeeeAuthorization authorization, IAatfDataAccess aatfDataAccess, IGenericDataAccess genericDataAccess, IOrganisationDetailsDataAccess organisationDetailsDataAccess) { this.authorization = authorization; this.aatfDataAccess = aatfDataAccess; this.genericDataAccess = genericDataAccess; this.organisationDetailsDataAccess = organisationDetailsDataAccess; }
public EditSentOnAatfSiteWithOperatorHandler(WeeeContext context, IWeeeAuthorization authorization, IWeeeSentOnDataAccess sentOnDataAccess, IGenericDataAccess genericDataAccess, IReturnDataAccess returnDataAccess, IOrganisationDetailsDataAccess orgDataAccess) { this.context = context; this.authorization = authorization; this.sentOnDataAccess = sentOnDataAccess; this.genericDataAccess = genericDataAccess; this.returnDataAccess = returnDataAccess; this.organisationDetailsDataAccess = orgDataAccess; }
public AddAatfSiteHandler(WeeeContext context, IWeeeAuthorization authorization, IAatfSiteDataAccess offSiteDataAccess, IGenericDataAccess genericDataAccess, IOrganisationDetailsDataAccess organisationDetailsDataAccess) { this.context = context; this.authorization = authorization; this.offSiteDataAccess = offSiteDataAccess; this.genericDataAccess = genericDataAccess; this.organisationDetailsDataAccess = organisationDetailsDataAccess; }
public EditAatfSiteHandlerTests() { authorisation = A.Fake <IWeeeAuthorization>(); aatfSiteDataAccess = A.Fake <IAatfSiteDataAccess>(); genericDataAccess = A.Fake <IGenericDataAccess>(); organisationDetailsDataAccess = A.Fake <IOrganisationDetailsDataAccess>(); weeeContext = A.Fake <WeeeContext>(); handler = new EditAatfSiteHandler(weeeContext, authorisation, aatfSiteDataAccess, genericDataAccess, organisationDetailsDataAccess); }
public RemoveWeeeSentOnHandlerTests() { this.context = A.Fake <WeeeContext>(); this.authorization = A.Fake <IWeeeAuthorization>(); this.sentOnDataAccess = A.Fake <IWeeeSentOnDataAccess>(); this.genericDataAccess = A.Fake <IGenericDataAccess>(); this.obligatedWeeeDataAccess = A.Fake <IFetchObligatedWeeeForReturnDataAccess>(); handler = new RemoveWeeeSentOnHandler(context, authorization, sentOnDataAccess, genericDataAccess, obligatedWeeeDataAccess); }
public AddSentOnAatfSiteHandlerTests() { returnDataAccess = A.Fake <IReturnDataAccess>(); var authorization = A.Fake <IWeeeAuthorization>(); sentOnDataAccess = A.Fake <IWeeeSentOnDataAccess>(); genericDataAccess = A.Fake <IGenericDataAccess>(); organisationDetailsDataAccess = A.Fake <IOrganisationDetailsDataAccess>(); handler = new AddSentOnAatfSiteHandler(authorization, sentOnDataAccess, genericDataAccess, returnDataAccess, organisationDetailsDataAccess); }
public AddAatfSiteHandlerTests() { authorisation = A.Fake <IWeeeAuthorization>(); addAatfSiteDataAccess = A.Fake <IAatfSiteDataAccess>(); genericDataAccess = A.Fake <IGenericDataAccess>(); obligatedReusedDataAccess = A.Fake <IObligatedReusedDataAccess>(); organisationDetailsDataAccess = A.Fake <IOrganisationDetailsDataAccess>(); weeeContext = A.Fake <WeeeContext>(); handler = new AddAatfSiteHandler(weeeContext, authorisation, addAatfSiteDataAccess, genericDataAccess, organisationDetailsDataAccess); }