예제 #1
0
        public void Delete_ValidGroup_ShouldRemoveGroupViaContext()
        {
            supplierGroupDal.Delete(supplierGroupId);

            groups.Verify(s => s.Remove(It.IsAny <SqlSupplierGroup>()), Times.Once);
            context.Verify(c => c.SaveChanges(), Times.Once);
        }
예제 #2
0
 public void DeleteSupplierGroup(int id)
 {
     supplierGroupDal.Delete(id);
 }