When and where do these Constructor type of arguments get created and initialized?
* Related Note while stepping through code and debugging:
I have looked in the RouteProvider.cs file and looked at the following mapping and do not understand how it can work. Where does the parameters for the constructor get passed?
routes.MapLocalizedRoute("Register",
"register/",
new { controller = "Customer", action = "Register" },
new[] { "Nop.Web.Controllers" });
For visibilities sake here is the prototype portion of the CustomerController. How would I go about initializing an instance of this class? What other "Nop" related calls and stuff must I setup?
#region Ctor
public CustomerController(IAuthenticationService authenticationService,
IDateTimeHelper dateTimeHelper,
DateTimeSettings dateTimeSettings, TaxSettings taxSettings,
ILocalizationService localizationService,
IWorkContext workContext, ICustomerService customerService,
ITaxService taxService, RewardPointsSettings rewardPointsSettings,
CustomerSettings customerSettings, ForumSettings forumSettings,
OrderSettings orderSettings, IAddressService addressService,
ICountryService countryService, IStateProvinceService stateProvinceService,
IOrderTotalCalculationService orderTotalCalculationService,
IOrderProcessingService orderProcessingService, IOrderService orderService,
ICurrencyService currencyService, IPriceFormatter priceFormatter,
IPictureService pictureService, INewsLetterSubscriptionService newsLetterSubscriptionService,
IForumService forumService, IShoppingCartService shoppingCartService,
IOpenAuthenticationService openAuthenticationService, MediaSettings mediaSettings,
IWorkflowMessageService workflowMessageService, LocalizationSettings localizationSettings,
CaptchaSettings captchaSettings, ExternalAuthenticationSettings externalAuthenticationSettings)
{