示例#1
0
 public DIetaryManagementService(IMessageHandler feedbackHandler, IDietaryManagementRepository dietaryManagementRepository, IMessageSerializer messageSerializer, IQueryHelper queryHelper)
 {
     this.FeedbackHandler        = feedbackHandler;
     _dietaryManagmentRepository = dietaryManagementRepository;
     _messageSerializer          = messageSerializer;
     _queryHelper = queryHelper;
 }
示例#2
0
 public PatientService(IPatientRepository patientRepository, IFoodRepository foodRepository,
                       IAccountRepository accountRepository, IDietaryManagementRepository dietaryManagementRepository,
                       IMessageHandler feedbackHandler, IMessageSerializer messageSerializer,
                       IQueryHelper queryHelper, IAuthorization authorizationService)
 {
     _patientRepository                = patientRepository;
     this._foodRepository              = foodRepository;
     this._accountRepository           = accountRepository;
     this._dietaryManagementRepository = dietaryManagementRepository;
     this.FeedbackHandler              = feedbackHandler;
     _messageSerializer                = messageSerializer;
     _queryHelper = queryHelper;
     this._authorizationService = authorizationService;
 }