Exemplo n.º 1
0
        public void GetByIdTestFail()
        {
            var pgrepo = new PgRepository(pgcontextmock.Object);
            var pgobj  = pgrepo.GetById(88);

            Assert.IsNull(pgobj);
        }
Exemplo n.º 2
0
        public void GetAllTest()
        {
            var pgrepo = new PgRepository(pgcontextmock.Object);
            var pglist = pgrepo.GetAll();

            Assert.AreEqual(4, pglist.Count());
        }