public void DeleteTest() { cgUserDB = new CGUserDB(); var bob = new CGUserModel("bob", "*****@*****.**", CGUserModel.UserType.PLAYER, CGUserModel.UserStatus.INGAME); bob.Id = "asdfg09876"; cgUserDB.Insert(bob); cgUserDB.Delete(bob); bob = cgUserDB.GetById("asdfg09876"); Assert.IsNull(bob); }
public void InsertTest() { cgUserDB = new CGUserDB(); var bob = new CGUserModel("bob", "*****@*****.**", CGUserModel.UserType.PLAYER, CGUserModel.UserStatus.STUNNED); bob.Id = "qwerty12345678"; cgUserDB.Insert(bob); var anders2 = cgUserDB.GetById("qwerty12345678"); Assert.AreEqual(bob.UserName, anders2.UserName); cgUserDB.Delete(bob); }