Example #1
0
 public EmotionService(
     IEmotionRepository emotionRepository,
     ILogWrapper logger)
 {
     EmotionRepository = emotionRepository;
     Logger            = logger;
 }
Example #2
0
 public HomeController(IUserRepository userRepository, IPostRepository postRepository, IEmotionRepository emotionRepository, IGroupRepository groupRepository)
 {
     this.userRepository    = userRepository;
     this.postRepository    = postRepository;
     this.emotionRepository = emotionRepository;
     this.groupRepository   = groupRepository;
 }
Example #3
0
 public HomeController()
 {
     this.userRepository    = new UserRepository(new EngnestContext());
     this.postRepository    = new PostRepository(new EngnestContext());
     this.emotionRepository = new EmotionRepository(new EngnestContext());
     this.groupRepository   = new GroupRepository(new EngnestContext());
 }
Example #4
0
        public SaveEmotionWhenFaceDetectedHandler(
            IPersonRepository iPersonRepository, IEmotionRepository iEmotionRepository)
        {
            this.iPersonRepository = iPersonRepository ??
                                     throw new ArgumentNullException(nameof(iPersonRepository));

            this.iEmotionRepository = iEmotionRepository ??
                                      throw new ArgumentNullException(nameof(iEmotionRepository));
        }
 public EmotionAppService(IEmotionRepository iEmotionRepository)
 {
     this.iEmotionRepository = iEmotionRepository
                               ?? throw new ArgumentNullException(nameof(iEmotionRepository));
 }