public void Service_Contains_Test <T>(ServiceTestCase <T> service, List <T> expected) where T : IEntity
 {
     foreach (T entity in expected)
     {
         Assert.Contains(entity, service.Service.GetAll());
     }
 }
        public void Service_Get_Equals_Test <T>(ServiceTestCase <T> service, T expected) where T : IEntity
        {
            T r = service.Service.Get(expected.Id);

            Assert.AreEqual(expected, r);
        }
 public void Service_Save_Contains_Test <T>(ServiceTestCase <T> service, T add) where T : IEntity
 {
     service.Service.Save(add);
     Assert.Contains(add, service.Service.GetAll());
 }
 public void Service_Save_Count_Test <T>(ServiceTestCase <T> service, T add, int expected) where T : IEntity
 {
     service.Service.Save(add);
     Assert.AreEqual(expected, service.Service.Count());
 }
 public void Service_Count_Test <T>(ServiceTestCase <T> service, int count) where T : IEntity
 {
     Assert.AreEqual(count, service.Service.Count());
 }