public void ShouldThrowBusinessExceptionWhileDeletingMandatoryListWhenWrongStatus() { MandatoryList mandatoryList = new MandatoryListDefault().GetMandatoryListWithStatusWaitingApprove(); var e = Assert.Throws <BusinessRuleException>(() => mandatoryList.Delete()); Assert.Equal(Resources.SharedResources.ErrorMessages.NotAddedAuthorized, e.Message); }
public void ShouldDeleteMandatoryList() { MandatoryList mandatoryList = new MandatoryListDefault().GetMandatoryListWithProdcuts(); mandatoryList.Delete(); Assert.False(mandatoryList.IsActive); }