Example #1
0
        public void TestDelete()
        {
            ctx.Transactions.Add(transaction);
            ctx.SaveChanges();
            engine.Delete(transaction);

            Assert.IsNull(ctx.Transactions.Where(c => c.Id == 1).FirstOrDefault());
        }
Example #2
0
        public void TestDeleteItem()
        {
            engine.Save(entry);
            Assert.AreEqual(1, ctx.BoxScoreEntries.Count());

            engine.Delete(entry);
            Assert.IsNull(engine.Load(1));
        }
Example #3
0
        public void TestDelete()
        {
            ctx.TeamStats.Add(stat);
            ctx.SaveChanges();
            engine.Delete(stat);

            Assert.IsNull(ctx.TeamStats.Where(c => c.Id == 1).FirstOrDefault());
        }
        public void TestDeleteItem()
        {
            engine.Save(injury);
            Assert.AreEqual(1, ctx.Injuries.Count());

            engine.Delete(injury);
            Assert.IsNull(engine.Load(1));
        }
Example #5
0
        public void TestDelete()
        {
            engine.Save(stat);
            Assert.IsNotNull(ctx.PlayerStats.Where(c => c.Id == 1).FirstOrDefault());

            engine.Delete(stat);
            Assert.IsNull(ctx.PlayerStats.Where(c => c.Id == 1).FirstOrDefault());
        }
        public void TestDelete()
        {
            ctx.Players.Add(player);
            ctx.SaveChanges();
            Assert.IsNotNull(engine.Load(1));

            engine.Delete(player);
            Assert.AreEqual(0, ctx.Players.Count());
        }
        public void TestDelete()
        {
            entry.Id = 1;
            ctx.ScheduleEntries.Add(entry);
            ctx.SaveChanges();
            engine.Delete(entry);

            Assert.IsNull(ctx.ScheduleEntries.Where(c => c.Id == 1).FirstOrDefault());
        }