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;
        }
예제 #2
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 SightingNoteViewModelQuery(
            IDocumentSession documentSession,
            ISightingNoteViewFactory sightingNoteViewFactory)
        {
            Check.RequireNotNull(documentSession, "documentSession");
            Check.RequireNotNull(sightingNoteViewFactory, "sightingNoteViewFactory");

            _documentSession         = documentSession;
            _sightingNoteViewFactory = sightingNoteViewFactory;
        }
        public SightingNoteViewModelQuery(
            IDocumentSession documentSession,
            ISightingNoteViewFactory sightingNoteViewFactory)
        {
            Check.RequireNotNull(documentSession, "documentSession");
            Check.RequireNotNull(sightingNoteViewFactory, "sightingNoteViewFactory");

            _documentSession = documentSession;
            _sightingNoteViewFactory = sightingNoteViewFactory;
        }
        public ActivitySightingNoteAdded(
            IDocumentSession documentSession,
            IBackChannelService backChannelService,
            ISightingViewFactory sightingViewFactory,
            ISightingNoteViewFactory sightingNoteViewFactory
            )
        {
            Check.RequireNotNull(documentSession, "documentSession");
            Check.RequireNotNull(backChannelService, "backChannelService");
            Check.RequireNotNull(sightingViewFactory, "sightingViewFactory");
            Check.RequireNotNull(sightingNoteViewFactory, "sightingNoteViewFactory");

            _documentSession         = documentSession;
            _backChannelService      = backChannelService;
            _sightingViewFactory     = sightingViewFactory;
            _sightingNoteViewFactory = sightingNoteViewFactory;
        }