예제 #1
0
        public int ShouldGroupedCustomersById(UnSettled[] input)
        {
            _reader.GetRecords<UnSettled>()
                .Returns(c => input);

            return _repository.GetAll().Count();
        }
예제 #2
0
        public int[] ShouldAddEventsToRelatedCustomer(UnSettled[] input)
        {
            _reader.GetRecords<UnSettled>()
                .Returns(c => input);

            return _repository.GetAll()
                .Select(c => c.Events.Count)
                .ToArray();
        }