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; }
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; }
public HairController(IHairRepository repository, HairHandler handler) { _repository = repository; _handler = handler; }
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; }
public HairHandler(IHairRepository repository) { _repository = repository; }
public HomeController(IHairRepository hairRepository) { _hairRepository = hairRepository; }