public int ShouldGroupedCustomersById(UnSettled[] input) { _reader.GetRecords<UnSettled>() .Returns(c => input); return _repository.GetAll().Count(); }
public int[] ShouldAddEventsToRelatedCustomer(UnSettled[] input) { _reader.GetRecords<UnSettled>() .Returns(c => input); return _repository.GetAll() .Select(c => c.Events.Count) .ToArray(); }