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));
        }
예제 #2
0
 private void ExpectCreateMedicalVendorEarning(MedicalVendorEarningAggregate medicalVendorEarningAggregate,
                                               long dataCreatorId, DateTime dateCreated, MedicalVendorEarning medicalVendorEarningToReturn)
 {
     Expect.Call(_medicalVendorEarningFactory.CreateMedicalVendorEarning(medicalVendorEarningAggregate, dataCreatorId, dateCreated))
     .Return(medicalVendorEarningToReturn);
 }
예제 #3
0
 public void CreateMedicalVendorEarningThrowsExceptionWhenNullAggregateGiven()
 {
     _medicalVendorEarningFactory.CreateMedicalVendorEarning(null, 0, new DateTime());
 }