public MedicalVendorEarning GenerateMedicalVendorEarning(long physicianId, long customerEventTestId, DateTime dateCreated, bool isEventCustomerActive) { if (physicianId == 0) { throw new ArgumentNullException("organizationRoleUser"); } MedicalVendorEarningAggregate medicalVendorEarningAggregate = _medicalVendorEarningAggregateRepository. GetMedicalVendorEarningAggregate(physicianId, customerEventTestId, isEventCustomerActive); return(_medicalVendorEarningFactory.CreateMedicalVendorEarning(medicalVendorEarningAggregate, physicianId, dateCreated)); }
private void ExpectCreateMedicalVendorEarning(MedicalVendorEarningAggregate medicalVendorEarningAggregate, long dataCreatorId, DateTime dateCreated, MedicalVendorEarning medicalVendorEarningToReturn) { Expect.Call(_medicalVendorEarningFactory.CreateMedicalVendorEarning(medicalVendorEarningAggregate, dataCreatorId, dateCreated)) .Return(medicalVendorEarningToReturn); }
public void CreateMedicalVendorEarningThrowsExceptionWhenNullAggregateGiven() { _medicalVendorEarningFactory.CreateMedicalVendorEarning(null, 0, new DateTime()); }