public void TestMethod1() { using (var dataContext = new ShopDbEntities()) { var publishers = new SqlRepository <Publisher>(dataContext); Publisher publisher = publishers.GetById(1); Assert.AreEqual("DC Comics", publisher.Name); } }