Beispiel #1
0
        public void TestQueryItems()
        {
            engine.Save(entry);
            Expression <Func <BoxScoreEntry, bool> > expression = c => c.Quarter1 == 15;

            Assert.AreEqual(1, engine.Query(expression).Count());
        }
        public void TestQueryItems()
        {
            engine.Save(injury);
            Expression <Func <Injury, bool> > expression = c => c.PlayerId == 1;

            Assert.AreEqual(1, engine.Query(expression).Count());
        }
Beispiel #3
0
        public void TestQuery()
        {
            engine.Save(stat);
            Expression <Func <PlayerStat, bool> > expression = c => c.PlayerId == 1;

            Assert.AreEqual(1, engine.Query(expression).Count());
        }
        public void TestQuery()
        {
            ctx.Players.Add(player);
            ctx.SaveChanges();
            Expression <Func <Player, bool> > expression = c => c.PlayerCode == "JSMITH";

            Assert.AreEqual(1, engine.Query(expression).Count());
        }
Beispiel #5
0
        public void TestQuery()
        {
            ctx.Transactions.Add(transaction);
            ctx.SaveChanges();

            Expression <Func <Transaction, bool> > expression = c => c.OldTeamId == 6;

            Assert.AreEqual(1, engine.Query(expression).Count());
        }
Beispiel #6
0
        public void TestQuery()
        {
            ctx.TeamStats.Add(stat);
            ctx.SaveChanges();

            Expression <Func <TeamStat, bool> > expression = c => c.Assits == 3;

            Assert.AreEqual(1, engine.Query(expression).Count());
        }
        public void TestQuery()
        {
            entry.Id = 1;
            ctx.ScheduleEntries.Add(entry);
            ctx.SaveChanges();
            Expression <Func <ScheduleEntry, bool> > expression = c => c.AwayTeamId == 3 && c.GameDate > new DateTime(2020, 1, 17);

            Assert.AreEqual(1, engine.Query(expression).Count());
        }
        public void TestQuery()
        {
            ctx.Teams.Add(team);
            ctx.SaveChanges();

            Expression <Func <Team, bool> > expression = c => c.TeamCode == "MIN";

            Assert.AreEqual(1, engine.Query(expression).Count());
        }