Beispiel #1
0
        public OrderedPair <int, List <MedicalVendorEarningCustomerAggregate> > GetEarningCustomerAggregatesAndAggregateCount
            (long organizationRoleUserId, DateTime startDate, DateTime endDate, int pageNumber, int pageSize)
        {
            DateTime adjustedEndDate = endDate.AddDays(1).AddSeconds(-1);
            List <MedicalVendorEarningCustomerAggregate> medicalVendorEarningCustomerAggregates =
                _medicalVendorEarningCustomerAggregateRepository.
                GetEarningCustomerAggregates(organizationRoleUserId, startDate, adjustedEndDate, pageNumber, pageSize);
            int numberOfAggregatesForUser = _medicalVendorEarningCustomerAggregateRepository.GetNumberofEarningCustomerAggregates
                                                (organizationRoleUserId, startDate, adjustedEndDate);

            return(new OrderedPair <int, List <MedicalVendorEarningCustomerAggregate> >
                       (numberOfAggregatesForUser, medicalVendorEarningCustomerAggregates));
        }
 public void GetEarningCustomerAggregatesDoesNotBomb()
 {
     _medicalVendorEarningCustomerAggregateRepository.GetEarningCustomerAggregates(VALID_ORGANIZATION_ROLE_USER_ID,
                                                                                   new DateTime(2000, 1, 1), DateTime.Today, 2, 26);
 }