public ServiceMessageBoardController(IBaseApiManager BaseApiManager, IHttpContextAccessor Accessor, IConfigService ConfigService, IMessageBoardService MessageBoardService) : base(BaseApiManager)
 {
     this.BaseApiManager      = BaseApiManager;
     this.Accessor            = Accessor;
     this.ConfigService       = ConfigService;
     this.MessageBoardService = MessageBoardService;
 }
Пример #2
0
 public ServiceMessageBoardController(IBaseManager BaseManager, IMessageBoardService MessageBoardService, ITableOperationManager <Service_MessageBoard> TableOperationManager) : base(BaseManager)
 {
     this.BaseManager               = BaseManager;
     this.MessageBoardService       = MessageBoardService;
     this.TableOperationManager     = TableOperationManager;
     TableOperationManager.Account  = StaffID;
     TableOperationManager.NickName = StaffName;
 }
Пример #3
0
        public void MessagesController_Constructor_ThrowsNullException_When_MessageBoardService_Is_Null()
        {
            // Arrange
            IMessageBoardService         service = null;
            ILogger <MessagesController> logger  = null;

            // Act and Assert
            Assert.Throws <ArgumentNullException>(() => new MessagesController(service, logger));
        }
Пример #4
0
        public MessagesController(IMessageBoardService messageBoard, ILogger <MessagesController> logger)
        {
            if (messageBoard == null)
            {
                throw new ArgumentNullException("messageBoard");
            }

            if (logger == null)
            {
                throw new ArgumentNullException("logger");
            }

            _messageBoard = messageBoard;
            _logger       = logger;
        }
Пример #5
0
 public HomeController(IMessageBoardService messageRepository)
 {
     this._messageService = messageRepository;
 }
Пример #6
0
 public MessagesController(ILogger <MessagesController> logger, IMessageBoardService messageBoardService)
 {
     _logger = logger;
     _messageboardService = messageBoardService;
 }
 public MessageBoardController(IMessageBoardService messageBoardService)
 {
     _messageBoardService = messageBoardService;
 }
Пример #8
0
 public OfficialController(IMessageBoardService messageService)
 {
     this._messageService = messageService;
 }
 public ServiceMessageBoardController(IBaseManager BaseManager, IMessageBoardService MessageBoardService) : base(BaseManager)
 {
     this.BaseManager         = BaseManager;
     this.MessageBoardService = MessageBoardService;
 }