Esempio n. 1
0
        public void Patrons_GetAll_DatabaseEmptyOnload()
        {
            List <Patrons> testList    = Patrons.GetAll();
            List <Patrons> controlList = new List <Patrons> {
            };

            Assert.Equal(controlList, testList);
        }
Esempio n. 2
0
        public void Patrons_Save_SaveToDatabase()
        {
            Patrons newPatrons = new Patrons("Jenny");

            newPatrons.Save();

            Patrons testPatrons = Patrons.GetAll()[0];

            Assert.Equal(newPatrons, testPatrons);
        }