public void TestGetNumberOfUsersOnlineWhenNoneAreOnline() { var config = new NameValueCollection(_config); var provider = new MongoMembershipProvider(); provider.Initialize(DefaultName, config); MembershipCreateStatus status; provider.CreateUser("test", "123456", "*****@*****.**", "Question", "Answer", true, null, out status); var numberOfUsersOnline = provider.GetNumberOfUsersOnline(); Assert.AreEqual(0, numberOfUsersOnline); }