Example #1
0
        public void Delete_DeletesSpecificCommunity_True()
        {
            Community newCommunity = new Community("", "");

            newCommunity.Save();
            Community newCommunity2 = new Community("", "");

            newCommunity2.Save();
            newCommunity.Delete();
            List <Community> result = Community.GetAll();

            Assert.AreEqual(newCommunity2, result[0]);
        }