示例#1
0
 public Note(INoteRepository repo)
 {
     _repo = repo;
     if (_state == null)
     {
         _state      = repo.CreateNoteState();
         _state.Guid = Guid.NewGuid();
     }
 }
 public void UpdateNote(INoteState state)
 {
     throw new NotImplementedException();
 }
示例#3
0
 public Note(INoteRepository repo, INoteState state) : this(repo)
 {
     _repo  = repo;
     _state = state;
 }