Exemplo n.º 1
0
 public ProductRoute(
     IApplicationContext appContext,
     IRouteUrlProductListFactory routeUrlProductListFactory,
     IRouteUtilities routeUtilities
     )
 {
     if (appContext == null)
         throw new ArgumentNullException("appContext");
     if (routeUrlProductListFactory == null)
         throw new ArgumentNullException("routeUrlProductListFactory");
     if (routeUtilities == null)
         throw new ArgumentNullException("routeUtilities");
     this.appContext = appContext;
     this.routeUrlProductListFactory = routeUrlProductListFactory;
     this.routeUtilities = routeUtilities;
 }
Exemplo n.º 2
0
 public ProductRoute(
     IApplicationContext appContext,
     IRouteUrlProductListFactory routeUrlProductListFactory,
     IRouteUtilities routeUtilities
     )
 {
     if (appContext == null)
     {
         throw new ArgumentNullException("appContext");
     }
     if (routeUrlProductListFactory == null)
     {
         throw new ArgumentNullException("routeUrlProductListFactory");
     }
     if (routeUtilities == null)
     {
         throw new ArgumentNullException("routeUtilities");
     }
     this.appContext = appContext;
     this.routeUrlProductListFactory = routeUrlProductListFactory;
     this.routeUtilities             = routeUtilities;
 }