コード例 #1
0
 public EmotionService(
     IEmotionRepository emotionRepository,
     ILogWrapper logger)
 {
     EmotionRepository = emotionRepository;
     Logger            = logger;
 }
コード例 #2
0
ファイル: HomeController.cs プロジェクト: hunghop090/Engnest
 public HomeController(IUserRepository userRepository, IPostRepository postRepository, IEmotionRepository emotionRepository, IGroupRepository groupRepository)
 {
     this.userRepository    = userRepository;
     this.postRepository    = postRepository;
     this.emotionRepository = emotionRepository;
     this.groupRepository   = groupRepository;
 }
コード例 #3
0
ファイル: HomeController.cs プロジェクト: hunghop090/Engnest
 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());
 }
コード例 #4
0
        public SaveEmotionWhenFaceDetectedHandler(
            IPersonRepository iPersonRepository, IEmotionRepository iEmotionRepository)
        {
            this.iPersonRepository = iPersonRepository ??
                                     throw new ArgumentNullException(nameof(iPersonRepository));

            this.iEmotionRepository = iEmotionRepository ??
                                      throw new ArgumentNullException(nameof(iEmotionRepository));
        }
コード例 #5
0
 public EmotionAppService(IEmotionRepository iEmotionRepository)
 {
     this.iEmotionRepository = iEmotionRepository
                               ?? throw new ArgumentNullException(nameof(iEmotionRepository));
 }