public void CreateUser() { var user = new User("john") { FirstName = "John", LastName = "Smith", Password = "******" }; bool result = userContext.Create(user); Assert.IsTrue(result); Assert.IsNotNull(user.Id); }
public void CreatePosts() { var post = new Post { Title = "Second Blog", Text = "This is a second blog added from unit", PostedOn = DateTime.Now.AddHours(-1), LastModified = DateTime.Now }; bool result = postContext.Create(post); Assert.IsTrue(result); }