public static void TestCanCount() { var repository = new ModelRepository(); repository.DeleteAll(); repository.Insert(getModels()); var count = repository.CountAll(); Assert.True(count == getModels().Count(), "Incorrect count"); }
public static void TestCanCount() { var repository = new ModelRepository (); repository.DeleteAll (); repository.Insert (getModels ()); var count = repository.CountAll (); Assert.True (count == getModels ().Count (), "Incorrect count"); }
public static void TestCanDeleteAll() { var repository = new ModelRepository(); repository.Insert(getModels()); var preCount = repository.CountAll(); repository.DeleteAll(); var postCount = repository.CountAll(); Assert.True(preCount > 0, "No records were available to delete"); Assert.True(postCount == 0, "Failed to delete all records"); }
public static void TestCanDeleteAll() { var repository = new ModelRepository (); repository.Insert (getModels ()); var preCount = repository.CountAll (); repository.DeleteAll (); var postCount = repository.CountAll (); Assert.True (preCount > 0, "No records were available to delete"); Assert.True (postCount == 0, "Failed to delete all records"); }