Beispiel #1
0
 public EmotionService(
     IEmotionRepository emotionRepository,
     ILogWrapper logger)
 {
     EmotionRepository = emotionRepository;
     Logger            = logger;
 }
Beispiel #2
0
 public HomeController(IUserRepository userRepository, IPostRepository postRepository, IEmotionRepository emotionRepository, IGroupRepository groupRepository)
 {
     this.userRepository    = userRepository;
     this.postRepository    = postRepository;
     this.emotionRepository = emotionRepository;
     this.groupRepository   = groupRepository;
 }
Beispiel #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());
 }
Beispiel #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));
 }