コード例 #1
0
 public Customer VerifyCustomerAddresses(Customer customer, IEnumerable<Address> addresses)
 {
     return addresses.Contains(customer.Address) ? customer : null;
 }
コード例 #2
0
 public IEnumerable<Order> GetOrdersFromCustomerByNotes(Customer customer, IEnumerable<string> notes)
 {
     return customer.Orders.Where(order => order.Notes.Intersect(notes).Any());
 }
コード例 #3
0
 public Customer VerifyCustomerAddress(Customer customer, Address address)
 {
     return address != null && address.Equals(customer.Address) ? customer : null;
 }
コード例 #4
0
 public IList<Order> PlaceOrders(Customer customer, IList<Order> orders)
 {
     return orders;
 }
コード例 #5
0
 public Order PlaceOrder(Customer customer, Order order)
 {
     return order;
 }
コード例 #6
0
 public Address GetCustomerAddress(Customer customer)
 {
     return customer.Address;
 }
コード例 #7
0
 public Customer VerifyCustomerByOrder(Customer customer, Order order)
 {
     return customer.Orders.Any(o => o.ID == order.ID) ? customer : null;
 }