public void UpdateUser() { var user = new User("bob") { Id = new ObjectId("5409dc09850947cb64ad4e7c"), FirstName = "Bob", LastName = "Builder", Password = "******" }; bool result = userContext.Update(user); Assert.IsTrue(result); }
public void UpdatePost() { var user = new Post { Id = new ObjectId("54119baeba39ab13045a993d"), Title = "Second Blog", Text = "Updated Text", PostedOn = DateTime.Now.AddHours(-1), LastModified = DateTime.Now }; bool result = postContext.Update(user); Assert.IsTrue(result); }