public ServiceMessageBoardController(IBaseApiManager BaseApiManager, IHttpContextAccessor Accessor, IConfigService ConfigService, IMessageBoardService MessageBoardService) : base(BaseApiManager) { this.BaseApiManager = BaseApiManager; this.Accessor = Accessor; this.ConfigService = ConfigService; this.MessageBoardService = MessageBoardService; }
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; }
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)); }
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; }
public HomeController(IMessageBoardService messageRepository) { this._messageService = messageRepository; }
public MessagesController(ILogger <MessagesController> logger, IMessageBoardService messageBoardService) { _logger = logger; _messageboardService = messageBoardService; }
public MessageBoardController(IMessageBoardService messageBoardService) { _messageBoardService = messageBoardService; }
public OfficialController(IMessageBoardService messageService) { this._messageService = messageService; }
public ServiceMessageBoardController(IBaseManager BaseManager, IMessageBoardService MessageBoardService) : base(BaseManager) { this.BaseManager = BaseManager; this.MessageBoardService = MessageBoardService; }