public void GenerateMedicalVendorEarningGeneratesValidEarningWhenGivenValidId() { IValidator <MedicalVendorEarning> validator = new Validator <MedicalVendorEarning>(new MedicalVendorEarningValidationRuleFactory()); MedicalVendorEarning medicalVendorEarning = _medicalVendorEarningService.GenerateMedicalVendorEarning (0, VALID_CUSTOMER_EVENT_TEST_ID, DateTime.Today, true); Assert.IsNotNull(medicalVendorEarning); Assert.IsTrue(validator.IsValid(medicalVendorEarning)); }
public void GenerateMedicalVendorEarningThrowsExceptionWhenGivenOrganizationRoleUserIsNull() { //_medicalVendorEarningService.GenerateMedicalVendorEarning(0, 1, null, new DateTime(), true); _medicalVendorEarningService.GenerateMedicalVendorEarning(1, 1, new DateTime(), true); }