public void TestAddProfileToUser() { var mss = new MongoSuperService(MongoTestIP); var p = new Profile { Name = "Rainbow", Configurations = new Dictionary <string, dynamic>() }; if (!mss.Exists("Ben")) { var u = new User { UserName = "******", Password = "******", Profiles = new List <Profile>() }; mss.AddUser(u); } p.Configurations.Add("keyboard", "red"); mss.AddProfileToUser("Ben", p); }
public void TestJohnDoesNotExist() { var mss = new MongoSuperService(MongoTestIP); Assert.IsFalse(mss.Exists("John")); }
public void TestBenExists() { var mss = new MongoSuperService(MongoTestIP); Assert.IsTrue(mss.Exists("Ben")); }