public GetReturnHandlerTests()
        {
            populatedReturn = A.Fake <IGetPopulatedReturn>();

            handler = new GetReturnHandler(new AuthorizationBuilder()
                                           .AllowExternalAreaAccess()
                                           .AllowOrganisationAccess().Build(),
                                           populatedReturn);
        }
Beispiel #2
0
 public GetReturnsHandler(IWeeeAuthorization authorization,
                          IGetPopulatedReturn getPopulatedReturn,
                          IReturnDataAccess returnDataAccess,
                          IReturnFactory returnFactory,
                          IQuarterWindowFactory quarterWindowFactory,
                          ISystemDataDataAccess systemDataDataAccess)
 {
     this.authorization        = authorization;
     this.getPopulatedReturn   = getPopulatedReturn;
     this.returnDataAccess     = returnDataAccess;
     this.returnFactory        = returnFactory;
     this.quarterWindowFactory = quarterWindowFactory;
     this.systemDataDataAccess = systemDataDataAccess;
 }
Beispiel #3
0
        public GetReturnsHandlerTests()
        {
            populatedReturn      = A.Fake <IGetPopulatedReturn>();
            returnDataAccess     = A.Fake <IReturnDataAccess>();
            returnFactory        = A.Fake <IReturnFactory>();
            quarterWindowFactory = A.Fake <IQuarterWindowFactory>();
            systemDataDataAccess = A.Fake <ISystemDataDataAccess>();

            handler = new GetReturnsHandler(new AuthorizationBuilder()
                                            .AllowExternalAreaAccess()
                                            .AllowOrganisationAccess().Build(),
                                            populatedReturn,
                                            returnDataAccess,
                                            returnFactory,
                                            quarterWindowFactory,
                                            systemDataDataAccess);
        }
Beispiel #4
0
 public GetReturnHandler(IWeeeAuthorization authorization,
                         IGetPopulatedReturn getPopulatedReturn)
 {
     this.authorization      = authorization;
     this.getPopulatedReturn = getPopulatedReturn;
 }