Пример #1
0
 public NotificationHandler(IUnitOfWork uow,
                            IMediatorHandler bus,
                            INotificationHandler <DomainNotification> notifications,
                            INotificationRepository notificationRepository,
                            IBloodNotificationRepository bloodNotificationRepository,
                            IHairNotificationRepository hairNotificationRepository,
                            IBreastMilkNotificationRepository breastMilkNotificationRepository,
                            IDonatorUserBloodNotificationRepository donatorUserBloodNotificationRepository,
                            IDonatorUserHairNotificationRepository donatorUserHairNotificationRepository,
                            IDonatorUserBreastMilkNotificationRepository donatorUserBreastMilkNotificationRepository,
                            IDonatorUserRepository donatorUserRepository,
                            IInstitutionUserRepository institutionUserRepository,
                            IHairRepository hairRepository) : base(uow, bus, notifications)
 {
     _bus = bus;
     _notificationRepository                      = notificationRepository;
     _bloodNotificationRepository                 = bloodNotificationRepository;
     _hairNotificationRepository                  = hairNotificationRepository;
     _breastMilkNotificationRepository            = breastMilkNotificationRepository;
     _donatorUserBloodNotificationRepository      = donatorUserBloodNotificationRepository;
     _donatorUserHairNotificationRepository       = donatorUserHairNotificationRepository;
     _donatorUserBreastMilkNotificationRepository = donatorUserBreastMilkNotificationRepository;
     _donatorUserRepository     = donatorUserRepository;
     _institutionUserRepository = institutionUserRepository;
     _hairRepository            = hairRepository;
 }
Пример #2
0
 public HairHandler(IHairRepository hairRepository,
                    IUnitOfWork uow,
                    IMediatorHandler bus,
                    INotificationHandler <DomainNotification> notifications) : base(uow, bus, notifications)
 {
     _hairRepository = hairRepository;
     Bus             = bus;
 }
 public HairController(IMediatorHandler mediator,
                       INotificationHandler <DomainNotification> notifications,
                       IHairRepository hairRepository)
     : base(notifications)
 {
     Bus             = mediator;
     _hairRepository = hairRepository;
 }
Пример #4
0
 public HairController(IHairRepository repository, HairHandler handler)
 {
     _repository = repository;
     _handler    = handler;
 }
Пример #5
0
 public ShoppingCartController(IHairRepository hairRepository, ShoppingCart shoppingCart)
 {
     _hairRepository = hairRepository;
     _shoppingCart   = shoppingCart;
 }
/*Injecting IHairRepository and ICategory into the constractor here:
 * this is possible because they have been registered in the startup class*/
        public HairPiecesController(IHairRepository hairRepository, ICategoryRepository categoryRepository)
        {
            //set the local _hairRepository to the one that is injected
            _hairRepository     = hairRepository;
            _categoryRepository = categoryRepository;
        }
Пример #7
0
 public HairHandler(IHairRepository repository)
 {
     _repository = repository;
 }
Пример #8
0
 public HomeController(IHairRepository hairRepository)
 {
     _hairRepository = hairRepository;
 }