Ejemplo n.º 1
0
 public void MarkDeleteWithInvalidUserTest()
 {
     var user = new User { ID = Guid.NewGuid(), UserName = "******", Password = "******" };
     this.InjectLoginUser(user);
     var notesController = new NotesController(MockRepositoryContext.Object, mockNoteRepository.Object);
     notesController.MarkDelete(guid1);
 }
Ejemplo n.º 2
0
 public void MarkDeleteTest()
 {
     var notesController = new NotesController(MockRepositoryContext.Object, mockNoteRepository.Object);
     notesController.MarkDelete(guid1);
     Assert.AreEqual(DeleteFlag.MarkDeleted, notes[0].Deleted);
 }