/// <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) }, }); }
public DistrictService(IOpfcUow opfcUow) { _opfcUow = opfcUow; }
/// <summary> /// Constructor /// </summary> /// <param name="opfcUow"></param> public EventTypeService(IOpfcUow opfcUow) { _opfcUow = opfcUow; }
/// <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; }
public MealService(IOpfcUow opfcUow) { _opfcUow = opfcUow; }
public BookMarkService(IOpfcUow opfcUow) { _opfcUow = opfcUow; }
public PrivateRatingService(IOpfcUow opfcUow) { _opfcUow = opfcUow; }
public RatingService(IOpfcUow opfcUow) { _opfcUow = opfcUow; }
/// <summary> /// Constructor /// </summary> /// <param name="opfcUow"></param> public EventAddressService(IOpfcUow opfcUow) { _opfcUow = opfcUow; }
public ServiceLocationService(IOpfcUow opfcUow) { _opfcUow = opfcUow; }
public PaypalService(IOpfcUow opfcUow) { _opfcUow = opfcUow; }
public OrderLineDetailService(IOpfcUow opfcUow) { _opfcUow = opfcUow; }
/// <summary> /// Constructor /// </summary> /// <param name="opfcUow"></param> public UserRoleService(IOpfcUow opfcUow) { _opfcUow = opfcUow; }
public CityService(IOpfcUow opfcUow) { _opfcUow = opfcUow; }
/// <summary> /// Constructor /// </summary> /// <param name="opfcUow"></param> public CategoryService(IOpfcUow opfcUow) { _opfcUow = opfcUow; }