/// <summary> /// Initializes a new instance of the <see cref="CustomerMembershipController"/> class. /// </summary> /// <param name="newMemberModelFactory"> /// The new member model factory. /// </param> public CustomerMembershipController(NewMemberModelFactory <NewMemberModel> newMemberModelFactory) { Mandate.ParameterNotNull(newMemberModelFactory, "newMemberModelFactory"); NewMemberModelFactory = newMemberModelFactory; _memberService = ApplicationContext.Current.Services.MemberService; this.BillingAddressFactory = new FastTrackBillingAddressModelFactory(); this.ShippingAddressFactory = new FastTrackShippingAddressModelFactory(); }
/// <summary> /// Initializes a new instance of the <see cref="CustomerMembershipController"/> class. /// </summary> /// <param name="newMemberModelFactory"> /// The new member model factory. /// </param> public CustomerMembershipController(NewMemberModelFactory<NewMemberModel> newMemberModelFactory) { Mandate.ParameterNotNull(newMemberModelFactory, "newMemberModelFactory"); NewMemberModelFactory = newMemberModelFactory; _memberService = ApplicationContext.Current.Services.MemberService; this.BillingAddressFactory = new FastTrackBillingAddressModelFactory(); this.ShippingAddressFactory = new FastTrackShippingAddressModelFactory(); }