Пример #1
0
        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());
        }
Пример #2
0
 public void TestCreateToDatabase()
 {
     Assert.AreEqual(0, repo.GetCount());
     repo.Create(new MoneyInfo(5000, 3500));
 }