예제 #1
0
 private Customer(RegisteredCustomer registeredCustomer, Basket basket,
                  ImmutableDictionary <string, IPaymentMethod> paymentMethods, IPaymentMethodFactory paymentMethodFactory)
     : this(registeredCustomer, paymentMethodFactory)
 {
     Basket         = basket;
     PaymentMethods = paymentMethods;
 }
예제 #2
0
        private Customer(RegisteredCustomer registeredCustomer, IPaymentMethodFactory paymentMethodFactory)
        {
            _registeredCustomer   = registeredCustomer;
            _paymentMethodFactory = paymentMethodFactory;

            Basket         = Basket.Empty;
            PaymentMethods = ImmutableDictionary <string, IPaymentMethod> .Empty;
        }
예제 #3
0
 private Customer()
 {
     _registeredCustomer = RegisteredCustomer.None;
 }