Beispiel #1
0
        public IndexService(PersonRepository repository)
        {
            if (repository == null)
            {
                throw new ArgumentNullException("repository");
            }

            m_repository = repository;
        }
Beispiel #2
0
        public FeedHandler(PersonRepository repository)
        {
            if (repository == null)
            {
                throw new ArgumentNullException("repository");
            }

            m_repository = repository;

            SetAllowedHttpMethods(HttpMethod.Get, HttpMethod.Head);
        }