예제 #1
0
 /// <summary>
 /// Constructor sets dependent components.
 /// </summary>
 /// <param name="elementService">Used to retrieve, update and delete elements.</param>
 /// <param name="masterPageRepository">Master page repository.</param>
 /// <param name="masterPageValidator">Master page validator.</param>
 /// <param name="pageRepository">Page repository.</param>
 /// <param name="unitOfWorkFactory">For the creation of units of work to ensure transactional integrity.</param>
 public MasterPageService(IElementService elementService, IMasterPageRepository masterPageRepository, IMasterPageValidator masterPageValidator, IPageRepository pageRepository, IUnitOfWorkFactory unitOfWorkFactory)
 {
     _elementService       = elementService;
     _masterPageRepository = masterPageRepository;
     _masterPageValidator  = masterPageValidator;
     _pageRepository       = pageRepository;
     _unitOfWorkFactory    = unitOfWorkFactory;
 }
예제 #2
0
 /// <summary>
 /// Constructor sets dependent components.
 /// </summary>
 /// <param name="authenticationService">Provides access to authentication services.</param>
 /// <param name="authorizationService">Authorization service.</param>
 /// <param name="dataAnnotationsService">Retrieves information from data annotations.</param>
 /// <param name="elementService">Used to enumerate elements.</param>
 /// <param name="formHelperService">Provides form helper utilities.</param>
 /// <param name="masterPageService">For administration of master pages.</param>
 public MasterPageZoneFormService(IAuthenticationService authenticationService, IAuthorizationService authorizationService, IDataAnnotationsService dataAnnotationsService, IElementService elementService, IFormHelperService formHelperService, IMasterPageService masterPageService)
 {
     _authenticationService = authenticationService;
     _authorizationService = authorizationService;
     _dataAnnotationsService = dataAnnotationsService;
     _elementService = elementService;
     _formHelperService = formHelperService;
     _masterPageService = masterPageService;
 }
예제 #3
0
 public PageZoneFormService(IAuthenticationService authenticationService, IAuthorizationService authorizationService, IElementService elementService, IFormHelperService formHelperService, IMasterPageService masterPageService, Core.Pages.IPageService pageService)
 {
     _authenticationService = authenticationService;
     _authorizationService  = authorizationService;
     _elementService        = elementService;
     _formHelperService     = formHelperService;
     _masterPageService     = masterPageService;
     _pageService           = pageService;
 }
예제 #4
0
 public ElementAppService(
     IMongoDbRepository <Element, long> elementRepository,
     IElementService elementService,
     IMongoDbRepository <Map, long> mapRepository
     )
 {
     _elementRepository = elementRepository;
     _elementService    = elementService;
     _mapRepository     = mapRepository;
 }
예제 #5
0
 /// <summary>
 /// Constructor sets dependent components.
 /// </summary>
 /// <param name="elementService">For element interactions.</param>
 /// <param name="imageAnalysisService">Used to retrieve image properties from uploaded files and resize images.</param>
 /// <param name="masterPageRepository">Master page repository.</param>
 /// <param name="masterPageService">Master page service.</param>
 /// <param name="pageRepository">Page repository.</param>
 /// <param name="pageValidator">Page validator.</param>
 /// <param name="unitOfWorkFactory">Unit of work factory.</param>
 /// <param name="uploadService">For the management of uploads.</param>
 public PageService(IElementService elementService, IImageAnalysisService imageAnalysisService, IMasterPageRepository masterPageRepository, IMasterPageService masterPageService, IPageRepository pageRepository, IPageValidator pageValidator, IUnitOfWorkFactory unitOfWorkFactory, IUploadService uploadService)
 {
     _elementService       = elementService;
     _imageAnalysisService = imageAnalysisService;
     _masterPageRepository = masterPageRepository;
     _masterPageService    = masterPageService;
     _pageRepository       = pageRepository;
     _pageValidator        = pageValidator;
     _unitOfWorkFactory    = unitOfWorkFactory;
     _uploadService        = uploadService;
 }
예제 #6
0
 /// <summary>
 /// Constructor sets dependent components.
 /// </summary>
 /// <param name="administrationService">Administration service.</param>
 /// <param name="administrationPortalService">Administration portal service.</param>
 /// <param name="assetService">Assets service.</param>
 /// <param name="authenticationService">Provces access to authentication functions.</param>
 /// <param name="elementService">Provides access to element information.</param>
 /// <param name="gridService">Used to construct grid view models.</param>
 /// <param name="masterPageService">Used for the retrieval of master pages.</param>
 /// <param name="pageService">Provides access to page management functionality.</param>
 /// <param name="webHelperService">Provides low level access to web components.</param>
 public PagePortalService(IAdministrationService administrationService, IAdministrationPortalService administrationPortalService, IAssetService assetService, IAuthenticationService authenticationService, IElementService elementService, IGridService gridService, IMasterPageService masterPageService, IPageService pageService, IWebHelperService webHelperService)
 {
     _administrationService       = administrationService;
     _administrationPortalService = administrationPortalService;
     _assetService          = assetService;
     _authenticationService = authenticationService;
     _elementService        = elementService;
     _gridService           = gridService;
     _masterPageService     = masterPageService;
     _pageService           = pageService;
     _webHelperService      = webHelperService;
 }
예제 #7
0
 /// <summary>
 /// Constructor sets dependent components.
 /// </summary>
 /// <param name="domainRepository">Domain repository.</param>
 /// <param name="elementService">Element service.</param>
 /// <param name="masterPageRepository">Master page repository.</param>
 /// <param name="pageService">Page service.</param>
 /// <param name="unitOfWorkFactory">Unit of work factory.</param>
 /// <param name="templateRepository">Template repository.</param>
 /// <param name="tenantRepository">Used to get new tenant identifier when website created.</param>
 /// <param name="webRepository">Web repository.</param>
 /// <param name="webValidator">Validates create, update and delete actions.</param>
 public WebService(IDomainRepository domainRepository, IElementService elementService, IMasterPageRepository masterPageRepository, IPageService pageService, IUnitOfWorkFactory unitOfWorkFactory, ITemplateRepository templateRepository, ITenantRepository tenantRepository, IWebRepository webRepository, IWebValidator webValidator)
 {
     _domainRepository     = domainRepository;
     _elementService       = elementService;
     _masterPageRepository = masterPageRepository;
     _pageService          = pageService;
     _unitOfWorkFactory    = unitOfWorkFactory;
     _templateRepository   = templateRepository;
     _tenantRepository     = tenantRepository;
     _webRepository        = webRepository;
     _webValidator         = webValidator;
 }
예제 #8
0
        public BaseTest()
        {
            var options = new DbContextOptionsBuilder <ZoneDB>()
                          .UseInMemoryDatabase(Guid.NewGuid().ToString())
                          .Options;

            var context = new ZoneDB(options);

            ZoneService          = new ZoneService(context);
            ElementService       = new ElementService(context);
            WeatherService       = new WeatherService();
            CommunicationService = new CommunicationService(WeatherService, context);
            IOptions <AppSettings> appSettings = Options.Create <AppSettings>(new AppSettings()
            {
                Secret = "Testing"
            });

            UserService = new UserService(appSettings, context);
        }
예제 #9
0
 /// <summary>
 /// Constructor sets dependent components.
 /// </summary>
 /// <param name="authenticationService">Authentication service.</param>
 /// <param name="elementFactory">For the dynamic creation of element services.</param>
 /// <param name="elementService">Provides access to elements.</param>
 public ElementsController(IAuthenticationService authenticationService, IElementFactory elementFactory, IElementService elementService)
 {
     _authenticationService = authenticationService;
     _elementFactory        = elementFactory;
     _elementService        = elementService;
 }
예제 #10
0
 public FormService(FormEngineDbContext context, IFormValidation validation, IElementService elementService) : base(context, validation)
 {
     _elementService = elementService;
 }
예제 #11
0
 public ElementServiceUnitTest()
 {
     service = new ElementService();
 }
예제 #12
0
 public BattleService(IElementService elementService)
 {
     _elementService = elementService;
 }
예제 #13
0
 public ServersController(IServerService serverService, IElementService elementService)
 {
     _serverService  = serverService;
     _elementService = elementService;
 }
예제 #14
0
 public UserController(IElementService ElementService, INotificationHandler <DomainNotification> notifications, IUserService UserService)
 {
     _ElementService = ElementService;
     _Notifications  = (DomainNotificationHandler)notifications;
     _UserService    = UserService;
 }
예제 #15
0
 public Controller(ICategoryService categoryService, IDocumentService documentService, IElementService elementService, IFilterService filterService, IParameterService parameterService, DocumentChangedEvent documentChangedEvent)
 {
     CategoryController   = new CategoryController(categoryService);
     DocumentController   = new DocumentController(documentService);
     ElementController    = new ElementController(elementService);
     FilterController     = new FilterController(filterService);
     ParameterController  = new ParameterController(parameterService);
     DocumentChangedEvent = documentChangedEvent;
 }
예제 #16
0
 public ElementTokens(IElementService elementService)
 {
     _elementService = elementService;
 }
 public WeatherPageModel(IWeatherService weatherService, IElementService elementService)
 {
     _weatherService = weatherService;
     ElementService  = elementService;
     WeatherResponse = new WeatherResponse();
 }
예제 #18
0
 public AddElementsSystem(Contexts contexts, IServices services) : base(contexts.Game, Trigger)
 {
     _elementService = services.ElementService;
     _game           = contexts.Game;
     _config         = contexts.Config;
 }
예제 #19
0
 public void SetUp()
 {
     //common arrange
     _elementService = new ElementServiceBase();
 }
예제 #20
0
 public ElementsController(IElementService elementSvc)
 {
     this._elementSvc = elementSvc;
 }
예제 #21
0
 public ElementController(ILogger <ElementController> logger,
                          IElementService elementService)
 {
     _logger         = logger;
     _elementService = elementService;
 }
예제 #22
0
 public PowerService(HeroesDbContext context, IElementService elementService)
 {
     _context        = context;
     _elementService = elementService;
 }
 public FormElement(IElementService service)
 {
     InitializeComponent();
     this.service = service;
 }
예제 #24
0
 public ElementService(IElementService service)
 {
     _service = service;
 }
예제 #25
0
 public ElementController(IElementService elementService)
 {
     _elementService = elementService;
 }
예제 #26
0
 public ElementsController(IElementService elementService)
 {
     this.elementService = elementService;
 }