public void Update_UpdatesPropertiesOfEntityWhichNotMarkedWithIgnoreUpdateAttribute() { const int id = 1; const string name = "Default"; const BookListType type = BookListType.Private; const int ownerId = 1; var bookList = new BookList { Id = id, Name = name, Type = type, OwnerId = ownerId }; var source = new Dictionary <string, object> { [nameof(BookList.Id)] = 2, [nameof(BookList.Name)] = "Updated", [nameof(BookList.Type)] = BookListType.Shared, [nameof(BookList.OwnerId)] = 2 }; bookList.Update(source); Assert.True(bookList.Id == id); Assert.True(bookList.Name == (string)source[nameof(BookList.Name)]); Assert.True(bookList.Type == type); Assert.True(bookList.OwnerId == ownerId); }
public BookList ReadBook(CreatureIdentification creature, BookListType listType) { throw new NotImplementedException(); }
private void saveBookList(List<Book> bookList, int creatureId, BookListType bookListType) { throw new NotImplementedException(); }