Beispiel #1
0
 /// <summary>
 /// Return the runtime OPFC SERVER repository factory functions,
 /// each one is a factory for a repository of a particular type.
 /// </summary>
 /// <remarks>
 /// MODIFY THIS METHOD TO ADD CUSTOM OPFC SERVER FACTORY FUNCTIONS
 /// </remarks>
 private IDictionary <Type, Func <object, object> > GetServiceFactories(IOpfcUow opfcUow)
 {
     // TODO: Register repository here
     return(new Dictionary <Type, Func <object, object> >
     {
         { typeof(IOrderLineService), coreService => new OrderLineService(opfcUow) },
         { typeof(IPaypalService), coreService => new PaypalService(opfcUow) },
         { typeof(ICityService), coreService => new CityService(opfcUow) },
         { typeof(IDistrictService), coreService => new DistrictService(opfcUow) },
         { typeof(IRatingService), coreService => new RatingService(opfcUow) },
         { typeof(IBrandService), coreService => new BrandService(opfcUow) },
         { typeof(IBookMarkService), coreService => new BookMarkService(opfcUow) },
         { typeof(IEventService), coreService => new EventService(opfcUow) },
         { typeof(IMealService), coreService => new MealService(opfcUow) },
         { typeof(IMenuService), coreService => new MenuService(opfcUow) },
         { typeof(IOrderService), coreService => new OrderService(opfcUow) },
         { typeof(IUserService), coreService => new UserService(opfcUow) },
         { typeof(IEventTypeService), coreService => new EventTypeService(opfcUow) },
         { typeof(ICategoryService), coreService => new CategoryService(opfcUow) },
         { typeof(IPrivateRatingService), coreService => new PrivateRatingService(opfcUow) },
         { typeof(IServiceLocationService), coreService => new ServiceLocationService(opfcUow) },
         { typeof(IBrandSummaryService), coreService => new BrandSummaryService(opfcUow) },
     });
 }
Beispiel #2
0
 public DistrictService(IOpfcUow opfcUow)
 {
     _opfcUow = opfcUow;
 }
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="opfcUow"></param>
 public EventTypeService(IOpfcUow opfcUow)
 {
     _opfcUow = opfcUow;
 }
Beispiel #4
0
 /// <summary>
 /// Constructor that initializes with runtime OPFC Server repository factories
 /// </summary>
 public ServiceFactories(IOpfcUow opfcUow)
 {
     _serviceFactories = GetServiceFactories(opfcUow);
 }
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="opfcUow"></param>
 public BrandService(IOpfcUow opfcUow)
 {
     _opfcUow = opfcUow;
 }
 public OrderService(IOpfcUow opfcUow)
 {
     _opfcUow = opfcUow;
 }
Beispiel #7
0
 public MealService(IOpfcUow opfcUow)
 {
     _opfcUow = opfcUow;
 }
 public BookMarkService(IOpfcUow opfcUow)
 {
     _opfcUow = opfcUow;
 }
Beispiel #9
0
 public PrivateRatingService(IOpfcUow opfcUow)
 {
     _opfcUow = opfcUow;
 }
Beispiel #10
0
 public RatingService(IOpfcUow opfcUow)
 {
     _opfcUow = opfcUow;
 }
Beispiel #11
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="opfcUow"></param>
 public EventAddressService(IOpfcUow opfcUow)
 {
     _opfcUow = opfcUow;
 }
Beispiel #12
0
 public ServiceLocationService(IOpfcUow opfcUow)
 {
     _opfcUow = opfcUow;
 }
 public PaypalService(IOpfcUow opfcUow)
 {
     _opfcUow = opfcUow;
 }
Beispiel #14
0
 public OrderLineDetailService(IOpfcUow opfcUow)
 {
     _opfcUow = opfcUow;
 }
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="opfcUow"></param>
 public UserRoleService(IOpfcUow opfcUow)
 {
     _opfcUow = opfcUow;
 }
Beispiel #16
0
 public CityService(IOpfcUow opfcUow)
 {
     _opfcUow = opfcUow;
 }
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="opfcUow"></param>
 public CategoryService(IOpfcUow opfcUow)
 {
     _opfcUow = opfcUow;
 }