public SupportTicketsClient(IEncentivizeRestClient restClient)
 {
     var entitySettings = new EntitySettings(typeof(SupportTicket));
     _entityUpdateService = new EntityUpdateService<EditSupportTicketInput, SupportTicket>(restClient, entitySettings);
     _entityRetrievalService = new EntityRetrievalService<SupportTicket>(restClient, entitySettings);
     _entityCreationService = new EntityCreationService<SupportTicketInput, SupportTicket>(restClient, entitySettings);
 }
 public AchievementCategoriesClient(IEncentivizeRestClient restClient)
 {
     var entitySettings = new EntitySettings().Populate<AchievementCategory>();
     _entityUpdateService = new EntityUpdateService<AchievementCategoryInput, AchievementCategory>(restClient, entitySettings);
     _entityRetrievalService = new EntityRetrievalService<AchievementCategory>(restClient, entitySettings);
     _entityCreationService = new EntityCreationService<AchievementCategoryInput, AchievementCategory>(restClient, entitySettings);
     _entityDeletionService = new EntityDeletionService<AchievementCategoryInput, AchievementCategory>(restClient, entitySettings);
 }
示例#3
0
 public SaveExistingEntityCommandExecutor(CompositeCommand command, IRegionManager regionManager, IEventAggregator eventAggregator, IEntityUpdateService <U> entityUpdateService)
 {
     _regionManager       = regionManager;
     _eventAggregator     = eventAggregator;
     _entityUpdateService = entityUpdateService;
     commandHandler       = new DelegateCommand <T>(ExecuteCommand);
     command.RegisterCommand(commandHandler);
 }
 public OneTimePinConfigurationsClient(IEncentivizeRestClient restClient)
 {
     var entitySettings = new EntitySettings().Populate<OneTimePinConfiguration>();
     _entityUpdateService = new EntityUpdateService<OneTimePinConfigurationInput, OneTimePinConfiguration>(restClient, entitySettings);
     _entityRetrievalService = new EntityRetrievalService<OneTimePinConfiguration>(restClient, entitySettings);
     _entityCreationService = new EntityCreationService<OneTimePinConfigurationInput, OneTimePinConfiguration>(restClient, entitySettings);
     _entityDeletionService = new EntityDeletionService<OneTimePinConfigurationInput, OneTimePinConfiguration>(restClient, entitySettings);
 }
 public GroupsClient(IEncentivizeRestClient restClient)
 {
     var entitySettings = new EntitySettings().Populate<Group>();
     _entityUpdateService = new EntityUpdateService<GroupInput, Group>(restClient, entitySettings);
     _entityRetrievalService = new EntityRetrievalService<Group>(restClient, entitySettings);
     _entityCreationService = new EntityCreationService<GroupInput, Group>(restClient, entitySettings);
     _entityDeletionService = new EntityDeletionService<GroupInput, Group>(restClient, entitySettings);
 }
 public SupportTicketsClient(IEntityUpdateService<EditSupportTicketInput, SupportTicket> entityUpdateService, 
     IEntityRetrievalService<SupportTicket> entityRetrievalService, 
     IEntityCreationService<SupportTicketInput, SupportTicket> entityCreationService)
 {
     _entityUpdateService = entityUpdateService;
     _entityRetrievalService = entityRetrievalService;
     _entityCreationService = entityCreationService;
 }
 public AchievementCategoriesClient(IEntityUpdateService<AchievementCategoryInput, AchievementCategory> entityUpdateService, 
     IEntityRetrievalService<AchievementCategory> entityRetrievalService, 
     IEntityCreationService<AchievementCategoryInput, AchievementCategory> entityCreationService,
     IEntityDeletionService<AchievementCategoryInput, AchievementCategory> entityDeletionService)
 {
     _entityUpdateService = entityUpdateService;
     _entityRetrievalService = entityRetrievalService;
     _entityCreationService = entityCreationService;
     _entityDeletionService = entityDeletionService;
 }
 public OneTimePinConfigurationsClient(IEntityUpdateService<OneTimePinConfigurationInput, OneTimePinConfiguration> entityUpdateService, 
     IEntityRetrievalService<OneTimePinConfiguration> entityRetrievalService, 
     IEntityCreationService<OneTimePinConfigurationInput, OneTimePinConfiguration> entityCreationService,
     IEntityDeletionService<OneTimePinConfigurationInput, OneTimePinConfiguration> entityDeletionService)
 {
     _entityUpdateService = entityUpdateService;
     _entityRetrievalService = entityRetrievalService;
     _entityCreationService = entityCreationService;
     _entityDeletionService = entityDeletionService;
 }
 public GroupsClient(IEntityUpdateService<GroupInput, Group> entityUpdateService, 
     IEntityRetrievalService<Group> entityRetrievalService, 
     IEntityCreationService<GroupInput, Group> entityCreationService,
     IEntityDeletionService<GroupInput, Group> entityDeletionService)
 {
     _entityUpdateService = entityUpdateService;
     _entityRetrievalService = entityRetrievalService;
     _entityCreationService = entityCreationService;
     _entityDeletionService = entityDeletionService;
 }
示例#10
0
 public EntityService(RealEstateDbContext context,
                      IEntityGetFactory <TEntity> entityGetFactory,
                      IEntityGetAllFactory <TEntity> entityGetAllFactory,
                      IEntityDeleteFactory <TEntity> entityDeleteFactory,
                      IEntityUpdateFactory <TEntity> entityUpdateFactory,
                      IEntityCreateFactory <TEntity> entityCreateFactory)
 {
     DbContext            = context;
     _entityGetFactory    = entityGetFactory;
     _entityGetAllFactory = entityGetAllFactory;
     _entityGetAllService = entityGetAllFactory.Create(context);
     _getService          = entityGetFactory.Create(context);
     _deleteService       = entityDeleteFactory.Create(context);
     _updateService       = entityUpdateFactory.Create(context);
     _createService       = entityCreateFactory.Create(context);
 }