Esempio n. 1
0
        public void InstantiateDb()
        {
            // act
            var db = new CustomerDb();

            // assert
            Assert.That(db, Is.Not.Null, "db is null");
        }
Esempio n. 2
0
        public void CustomerCount_GT_2()
        {
            // arrange
            var db = new CustomerDb();

            // act
            var count = db.Customers.Count();

            // assert
            Assert.That(count, Is.GreaterThan(2));
        }
Esempio n. 3
0
        public void FirstCustomer_Exists()
        {
            // arrange
            var db = new CustomerDb();

            // act
            var firstCustomer = db.Customers.First();

            // assert
            Assert.That(firstCustomer, Is.Not.Null, "firstCustomer is null");

            // affirm
            var json = JsonConvert.SerializeObject(firstCustomer);
            Console.WriteLine(json);
        }