public void Color_DeleteById_WithIdNotNull_True() { IService <Color> colorService = new ColorService(); Color newColor = new Color(1004, "Vitalic"); colorService.Create(newColor); int countBefore = colorService.GetListAll().Count; colorService.DeleteById(1004); int countAfter = colorService.GetListAll().Count; Assert.IsTrue(countBefore > countAfter); }
public void Color_DeleteById_WithIdNull_Exception() { IService <Color> colorService = new ColorService(); colorService.DeleteById(9999); }