public static void GivenThereIsNoMoneyInfo(params MoneyInfo[] moneyinfos) { foreach (MoneyInfo money in moneyinfos) { // Add MoneyInfo to MoneyInfos here. repo.Create(money); } //context.SaveChanges(); Assert.AreEqual(moneyinfos.Length, repo.GetCount()); }
public void TestCreateToDatabase() { Assert.AreEqual(0, repo.GetCount()); repo.Create(new MoneyInfo(5000, 3500)); }