示例#1
0
        public EventsController(INewsManagementServices newsManagementServices, IEventManagementServices eventsManagementServices)
        {
            if (newsManagementServices == null)
                throw new ArgumentNullException("newsManagementServices");
            if (eventsManagementServices == null)
                throw new ArgumentNullException("eventsManagementServices");

            this._newsManagementServices = newsManagementServices;
            this._eventsManagementServices = eventsManagementServices;
             
        }
示例#2
0
        public NewsController(INewsManagementServices newsManagementServices, IEventManagementServices eventsManagementServices)
        {
            if (newsManagementServices == null)
            {
                throw new ArgumentNullException("newsManagementServices");
            }
            if (eventsManagementServices == null)
            {
                throw new ArgumentNullException("eventsManagementServices");
            }

            this._newsManagementServices   = newsManagementServices;
            this._eventsManagementServices = eventsManagementServices;
        }