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 ActivitySightingAdded( IDocumentSession documentSession, IBackChannelService backChannelService, ISightingViewFactory sightingViewFactory ) { Check.RequireNotNull(documentSession, "documentSession"); Check.RequireNotNull(backChannelService, "backChannelService"); Check.RequireNotNull(sightingViewFactory, "sightingViewFactory"); _documentSession = documentSession; _backChannelService = backChannelService; _sightingViewFactory = sightingViewFactory; }