public GetAatfObligatedDataHandler(IWeeeAuthorization authorization, WeeeContext weeContext,
                                    CsvWriterFactory csvWriterFactory, IGetAatfsDataAccess aatfDataAccess)
 {
     this.authorization    = authorization;
     this.weeContext       = weeContext;
     this.aatfDataAccess   = aatfDataAccess;
     this.csvWriterFactory = csvWriterFactory;
 }
        public GetAatfsByOrganisationIdHandlerTests()
        {
            this.authorization = A.Fake <IWeeeAuthorization>();
            this.dataAccess    = A.Fake <IGetAatfsDataAccess>();
            this.aatfmap       = A.Fake <IMap <Aatf, AatfDataList> >();

            handler = new GetAatfsByOrganisationIdHandler(authorization, aatfmap, dataAccess);
        }
Example #3
0
        public GetAatfsHandlerTests()
        {
            authorization = A.Fake <IWeeeAuthorization>();
            dataAccess    = A.Fake <IGetAatfsDataAccess>();
            fakeMapper    = A.Dummy <IMap <Aatf, AatfDataList> >();
            fixture       = new Fixture();

            handler = new GetAatfsHandler(authorization, fakeMapper, dataAccess);
        }
        public GetAatfInfoByAatfIdRequestHandlerTests()
        {
            this.authorization = AuthorizationBuilder.CreateUserWithAllRights();
            this.dataAccess    = A.Dummy <IGetAatfsDataAccess>();
            this.fakeMapper    = A.Fake <IMap <Aatf, AatfData> >();

            this.fixture = new Fixture();

            this.handler = new GetAatfInfoByAatfIdRequestHandler(this.authorization, this.fakeMapper, this.dataAccess);
        }
Example #5
0
 public GetAatfInfoByAatfIdRequestHandler(IWeeeAuthorization authorization, IMap <Aatf, AatfData> mapper, IGetAatfsDataAccess aatfDataAccess)
 {
     this.authorization  = authorization;
     this.mapper         = mapper;
     this.aatfDataAccess = aatfDataAccess;
 }
 public GetAatfsByOrganisationIdHandler(IWeeeAuthorization authorization, IMap <Aatf, AatfDataList> map, IGetAatfsDataAccess dataAccess)
 {
     this.authorization = authorization;
     this.dataAccess    = dataAccess;
     this.aatfmap       = map;
 }