public void Should_No_Error_Validate_Data() { PurchasingDispositionExpeditionService service = new PurchasingDispositionExpeditionService(GetServiceProvider().Object, _dbContext(GetCurrentMethod())); PurchasingDispositionExpeditionViewModel vm = _dataUtil(service).GetNewViewModel(); Assert.True(vm.Validate(null).Count() == 0); }
public void Should_Success_Validate_All_Null_Data() { PurchasingDispositionExpeditionViewModel vm = new PurchasingDispositionExpeditionViewModel(); Assert.True(vm.Validate(null).Count() > 0); }