Esempio n. 1
0
 public PostController(ICommandService commandService, IPostQueryService queryService, IContextService contextService, ISectionQueryService sectionqueryService)
 {
     _commandService      = commandService;
     _postQueryService    = queryService;
     _contextService      = contextService;
     _sectionQueryService = sectionqueryService;
 }
Esempio n. 2
0
 public SectionAdminController(ICommandService commandService
                               , ISectionQueryService queryService
                               , IContextService contextService)
 {
     _commandService = commandService;
     _queryService   = queryService;
     _contextService = contextService;
 }
Esempio n. 3
0
 static TestBase()
 {
     ConfigSettings.Initialize();
     InitializeENode();
     _commandService      = ObjectContainer.Resolve <ICommandService>();
     _sectionQueryService = ObjectContainer.Resolve <ISectionQueryService>();
     _postQueryService    = ObjectContainer.Resolve <IPostQueryService>();
     _replyQueryService   = ObjectContainer.Resolve <IReplyQueryService>();
     ObjectContainer.Resolve <ILockService>().AddLockKey(typeof(Account).Name);
 }
Esempio n. 4
0
 static TestBase()
 {
     ConfigSettings.Initialize();
     InitializeENode();
     _commandService = ObjectContainer.Resolve<ICommandService>();
     _sectionQueryService = ObjectContainer.Resolve<ISectionQueryService>();
     _postQueryService = ObjectContainer.Resolve<IPostQueryService>();
     _replyQueryService = ObjectContainer.Resolve<IReplyQueryService>();
     ObjectContainer.Resolve<ILockService>().AddLockKey(typeof(Account).Name);
 }
Esempio n. 5
0
 protected static void Initialize()
 {
     if (_enodeConfiguration == null)
     {
         ConfigSettings.Initialize();
         InitializeENode();
         _commandService      = ObjectContainer.Resolve <ICommandService>();
         _sectionQueryService = ObjectContainer.Resolve <ISectionQueryService>();
         _postQueryService    = ObjectContainer.Resolve <IPostQueryService>();
         _replyQueryService   = ObjectContainer.Resolve <IReplyQueryService>();
         _logger = ObjectContainer.Resolve <ILoggerFactory>().Create(typeof(TestBase).Name);
         ObjectContainer.Resolve <ILockService>().AddLockKey(typeof(Account).Name);
     }
 }
Esempio n. 6
0
        protected static void Initialize()
        {
            if (_enodeConfiguration != null)
            {
                CleanupEnode();
            }

            var configuration = new ConfigurationBuilder().AddJsonFile("appsettings.json").Build();

            ConfigSettings.ForumConnectionString = configuration.GetConnectionString("forum");
            ConfigSettings.ENodeConnectionString = configuration.GetConnectionString("enode");

            InitializeENode();

            _logger = ObjectContainer.Resolve <ILoggerFactory>().Create(typeof(TestBase));
            _logger.Info("ENode initialized.");

            _commandService      = ObjectContainer.Resolve <ICommandService>();
            _sectionQueryService = ObjectContainer.Resolve <ISectionQueryService>();
            _postQueryService    = ObjectContainer.Resolve <IPostQueryService>();
            _replyQueryService   = ObjectContainer.Resolve <IReplyQueryService>();

            ObjectContainer.Resolve <ILockService>().AddLockKey(typeof(Account).Name);
        }
Esempio n. 7
0
 public SectionController(ISectionQueryService queryService)
 {
     _queryService = queryService;
 }
Esempio n. 8
0
 public SectionController(ISectionQueryService queryService)
 {
     _queryService = queryService;
 }
Esempio n. 9
0
 public SectionAdminController(ICommandService commandService, ISectionQueryService queryService, IContextService contextService)
 {
     _commandService = commandService;
     _queryService = queryService;
     _contextService = contextService;
 }