コード例 #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();
        }