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 CheckApprovalNumberIsUniqueHandler(
     IWeeeAuthorization authorization,
     IFetchAatfDataAccess dataAccess)
 {
     this.authorization = authorization;
     this.dataAccess    = dataAccess;
 }
        public GetAatfByIdExternalHandlerTests()
        {
            this.authorization = A.Fake <IWeeeAuthorization>();
            this.dataAccess    = A.Fake <IFetchAatfDataAccess>();
            this.mapper        = A.Fake <IMap <Aatf, AatfData> >();

            this.handler = new GetAatfByIdExternalHandler(authorization, mapper, dataAccess);
        }
示例#4
0
 public SubmitReturnHandler(IWeeeAuthorization authorization,
                            IUserContext userContext,
                            IGenericDataAccess genericDataAccess,
                            WeeeContext weeeContext,
                            IFetchAatfDataAccess fetchAatfDataAccess)
 {
     this.authorization       = authorization;
     this.userContext         = userContext;
     this.genericDataAccess   = genericDataAccess;
     this.weeeContext         = weeeContext;
     this.fetchAatfDataAccess = fetchAatfDataAccess;
 }
示例#5
0
        public SubmitReturnHandlerTests()
        {
            userContext         = A.Fake <IUserContext>();
            genericDataAccess   = A.Fake <IGenericDataAccess>();
            weeeContext         = A.Fake <WeeeContext>();
            fetchAatfDataAccess = A.Fake <IFetchAatfDataAccess>();

            fixture = new Fixture();

            handler = new SubmitReturnHandler(new AuthorizationBuilder()
                                              .AllowExternalAreaAccess()
                                              .AllowOrganisationAccess().Build(),
                                              userContext,
                                              genericDataAccess,
                                              weeeContext,
                                              fetchAatfDataAccess);
        }
示例#6
0
 public GetPopulatedReturn(IWeeeAuthorization authorization,
                           IReturnDataAccess returnDataAccess,
                           IMap <ReturnQuarterWindow, ReturnData> mapper,
                           IQuarterWindowFactory quarterWindowFactory,
                           INonObligatedDataAccess nonObligatedDataAccess,
                           IFetchObligatedWeeeForReturnDataAccess obligatedDataAccess,
                           IFetchAatfDataAccess aatfDataAccess,
                           IReturnSchemeDataAccess returnSchemeDataAccess,
                           IGenericDataAccess genericDataAccess, ISystemDataDataAccess systemDataDataAccess)
 {
     this.authorization          = authorization;
     this.returnDataAccess       = returnDataAccess;
     this.mapper                 = mapper;
     this.quarterWindowFactory   = quarterWindowFactory;
     this.nonObligatedDataAccess = nonObligatedDataAccess;
     this.obligatedDataAccess    = obligatedDataAccess;
     this.aatfDataAccess         = aatfDataAccess;
     this.returnSchemeDataAccess = returnSchemeDataAccess;
     this.genericDataAccess      = genericDataAccess;
     this.systemDataDataAccess   = systemDataDataAccess;
 }
示例#7
0
 public GetAatfByIdExternalHandler(IWeeeAuthorization authorization, IMap <Aatf, AatfData> mapper, IFetchAatfDataAccess fetchDataAccess)
 {
     this.authorization   = authorization;
     this.mapper          = mapper;
     this.fetchDataAccess = fetchDataAccess;
 }
示例#8
0
        public CheckApprovalNumberIsUniqueHandlerTests()
        {
            dataAccess = A.Fake <IFetchAatfDataAccess>();

            handler = new CheckApprovalNumberIsUniqueHandler(AuthorizationBuilder.CreateUserWithAllRights(), dataAccess);
        }