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