Пример #1
0
 public WasteRecoveryBlockFactory(INotificationApplicationRepository notificationApplicationRepository,
                                  IWasteRecoveryRepository wasteRecoveryRepository,
                                  IWasteDisposalRepository wasteDisposalRepository)
 {
     this.notificationApplicationRepository = notificationApplicationRepository;
     this.wasteRecoveryRepository           = wasteRecoveryRepository;
     this.wasteDisposalRepository           = wasteDisposalRepository;
 }
 public WasteRecoveryBlockFactory(INotificationApplicationRepository notificationApplicationRepository,
     IWasteRecoveryRepository wasteRecoveryRepository,
     IWasteDisposalRepository wasteDisposalRepository)
 {
     this.notificationApplicationRepository = notificationApplicationRepository;
     this.wasteRecoveryRepository = wasteRecoveryRepository;
     this.wasteDisposalRepository = wasteDisposalRepository;
 }
        public DeleteWasteRecoveryWhenProviderChangesToImporterTests()
        {
            context = new TestIwsContext();
            recoveryRepository = A.Fake<IWasteRecoveryRepository>();
            disposalRepository = A.Fake<IWasteDisposalRepository>();

            handler = new DeleteWasteRecoveryWhenProviderChangesToImporter(context, recoveryRepository, disposalRepository);
        }
 public DeleteWasteRecoveryWhenProviderChangesToImporter(IwsContext context,
                                                         IWasteRecoveryRepository recoveryRepository,
                                                         IWasteDisposalRepository disposalRepository)
 {
     this.context            = context;
     this.recoveryRepository = recoveryRepository;
     this.disposalRepository = disposalRepository;
 }
Пример #5
0
        public DeleteWasteRecoveryWhenProviderChangesToImporterTests()
        {
            context            = new TestIwsContext();
            recoveryRepository = A.Fake <IWasteRecoveryRepository>();
            disposalRepository = A.Fake <IWasteDisposalRepository>();

            handler = new DeleteWasteRecoveryWhenProviderChangesToImporter(context, recoveryRepository, disposalRepository);
        }
 public DeleteWasteDisposalWhenRecoverablePercentageChangedToMaxTests()
 {
     context = new TestIwsContext();
     repository = A.Fake<IWasteDisposalRepository>();
     handler = new DeleteWasteDisposalWhenRecoverablePercentageChangedToMax(context, repository);
 }
 public DeleteWasteDisposalWhenRecoverablePercentageChangedToMax(IwsContext context,
                                                                 IWasteDisposalRepository repository)
 {
     this.repository = repository;
     this.context    = context;
 }
Пример #8
0
 public GetDisposalMethodHandler(IWasteDisposalRepository wasteDisposalRepository)
 {
     this.wasteDisposalRepository = wasteDisposalRepository;
 }
Пример #9
0
 public SetWasteDisposalHandler(IWasteDisposalRepository repository, IwsContext context)
 {
     this.repository = repository;
     this.context    = context;
 }
Пример #10
0
 public DeleteWasteDisposalWhenRecoverablePercentageChangedToMaxTests()
 {
     context    = new TestIwsContext();
     repository = A.Fake <IWasteDisposalRepository>();
     handler    = new DeleteWasteDisposalWhenRecoverablePercentageChangedToMax(context, repository);
 }
Пример #11
0
 public GetDisposalCostHandler(IWasteDisposalRepository wasteDisposalRepository, IMap <ValuePerWeight, ValuePerWeightData> wasteDisposalDataMap)
 {
     this.wasteDisposalRepository = wasteDisposalRepository;
     this.wasteDisposalDataMap    = wasteDisposalDataMap;
 }