コード例 #1
0
ファイル: NoteController.cs プロジェクト: Jork/Billboard
        public NoteController(Lazy<IUnitOfWork> unitOfWork, INoteConverter noteConverter)
        {
            Contract.Requires<ArgumentNullException>(unitOfWork != null);
            Contract.Requires<ArgumentNullException>(noteConverter != null);

            _unitOfWork = unitOfWork;
            _noteConverter = noteConverter;
        }
コード例 #2
0
ファイル: CategoryConverter.cs プロジェクト: Jork/Billboard
 public CategoryConverter(INoteConverter noteConverter)
 {
     _noteConverter = noteConverter;
 }
コード例 #3
0
 public NoteService(
     LoconotesDbContext dbContext, INoteConverter noteConverter)
 {
     _dbContext     = dbContext;
     _noteConverter = noteConverter;
 }