Exemplo n.º 1
0
        public ActivityViewModelQuery(
            IDocumentSession documentSession,
            ISightingViewFactory sightingViewFactory,
            ISightingNoteViewFactory sightingNoteViewFactory,
            IIdentificationViewFactory identificationViewFactory,
            IPostViewFactory postViewFactory,
            IUserContext userContext,
            IUserViewFactory userViewFactory)
        {
            Check.RequireNotNull(documentSession, "documentSession");
            Check.RequireNotNull(sightingViewFactory, "sightingViewFactory");
            Check.RequireNotNull(sightingNoteViewFactory, "sightingNoteViewFactory");
            Check.RequireNotNull(identificationViewFactory, "identificationViewFactory");
            Check.RequireNotNull(postViewFactory, "postViewFactory");
            Check.RequireNotNull(userContext, "userContext");
            Check.RequireNotNull(userViewFactory, "userViewFactory");

            _documentSession           = documentSession;
            _sightingViewFactory       = sightingViewFactory;
            _sightingNoteViewFactory   = sightingNoteViewFactory;
            _identificationViewFactory = identificationViewFactory;
            _postViewFactory           = postViewFactory;
            _userContext     = userContext;
            _userViewFactory = userViewFactory;
        }
        public ActivityViewModelQuery(
            IDocumentSession documentSession,
            ISightingViewFactory sightingViewFactory,
            ISightingNoteViewFactory sightingNoteViewFactory,
            IIdentificationViewFactory identificationViewFactory,
            IPostViewFactory postViewFactory,
            IUserContext userContext,
            IUserViewFactory userViewFactory)
        {
            Check.RequireNotNull(documentSession, "documentSession");
            Check.RequireNotNull(sightingViewFactory, "sightingViewFactory");
            Check.RequireNotNull(sightingNoteViewFactory, "sightingNoteViewFactory");
            Check.RequireNotNull(identificationViewFactory, "identificationViewFactory");
            Check.RequireNotNull(postViewFactory, "postViewFactory");
            Check.RequireNotNull(userContext, "userContext");
            Check.RequireNotNull(userViewFactory, "userViewFactory");

            _documentSession = documentSession;
            _sightingViewFactory = sightingViewFactory;
            _sightingNoteViewFactory = sightingNoteViewFactory;
            _identificationViewFactory = identificationViewFactory;
            _postViewFactory = postViewFactory;
            _userContext = userContext;
            _userViewFactory = userViewFactory;
        }
        public PostViewModelQuery(
            IDocumentSession documentSession,
            IUserViewFactory userViewFactory,
            IPostViewFactory postViewFactory,
            IUserContext userContext
            )
        {
            Check.RequireNotNull(documentSession, "documentSession");
            Check.RequireNotNull(userViewFactory, "userViewFactory");
            Check.RequireNotNull(postViewFactory, "postViewFactory");
            Check.RequireNotNull(userContext, "userContext");

            _documentSession = documentSession;
            _userViewFactory = userViewFactory;
            _postViewFactory = postViewFactory;
            _userContext     = userContext;
        }