public void DeleteUser() { { // Arrange MembershipCreateStatus status; var membershipUser = _provider.CreateUser("martijn", "1234ABCD", "*****@*****.**", null, null, true, null, out status); // Act _provider.DeleteUser("martijn", true); // Assert Thread.Sleep(500); using (var session = RavenDBMembershipProvider.DocumentStore.OpenSession()) { Assert.AreEqual(0, session.Query <User>().Count()); } } }