public void CreateAuthor() { var author = new Author("joe", "test1234"); author.DisplayName = "Joe Bloggs"; author.Save(); var saved = Author.FindById(author.AuthorId); Assert.IsNotNull(saved, "Author just saved should not be null"); Assert.AreEqual(author.AuthorId, saved.AuthorId, "Author ID not saved correctly"); Assert.AreEqual(author.UserName, saved.UserName, "UserName not saved correctly"); Assert.AreEqual(author.DisplayName, saved.DisplayName, "DisplayName not saved correctly"); Assert.AreEqual(author.PasswordHash, saved.PasswordHash, "PasswordHash not saved correctly"); author.Delete(); }