public void GosNumber_DeleteById_WithIdNotNull_True() { IService <GosNumber> gosNumberService = new GosNumberService(); GosNumber newGosNumber = new GosNumber(1004, "0000", "II", "3", 1, 1); gosNumberService.Create(newGosNumber); int countBefore = gosNumberService.GetListAll().Count; gosNumberService.DeleteById(1004); int countAfter = gosNumberService.GetListAll().Count; Assert.IsTrue(countBefore > countAfter); }
public void GosNumber_DeleteById_WithIdNull_Exception() { IService <GosNumber> gosNumberService = new GosNumberService(); gosNumberService.DeleteById(9999); }