Exemplo n.º 1
0
 public void TestMethod1()
 {
     _db.People.Add(new Person()
     {
         First = "Rafi", Last = "Gal"
     });
     _db.SaveChanges();
     _db.People.Count(p => p.First == "Rafi").Should().Be(1);
 }
Exemplo n.º 2
0
        public void TestMethod1()
        {
            _db.People.Add(new Person()
            {
                First = "Rafi", Last = "Gal"
            });
            _db.SaveChanges();
            _db.People.Count().Should().Be(1);

            dbStats.CarCount.Should().Be(0);
        }