public void TestInitialize()
        {
            _documentStore                        = DocumentStoreHelper.StartRaven();
            _mockCommandProcessor                 = new Mock <ICommandProcessor>();
            _mockUserContext                      = new Mock <IUserContext>();
            _mockProjectsViewModelBuilder         = new Mock <IProjectsViewModelBuilder>();
            _mockTeamsViewModelBuilder            = new Mock <ITeamsViewModelBuilder>();
            _mockStreamItemsViewModelBuilder      = new Mock <IStreamItemsViewModelBuilder>();
            _mockObservationsViewModelBuilder     = new Mock <IObservationsViewModelBuilder>();
            _mockPostsViewModelBuilder            = new Mock <IPostsViewModelBuilder>();
            _mockReferenceSpeciesViewModelBuilder = new Mock <IReferenceSpeciesViewModelBuilder>();

            using (var documentSession = _documentStore.OpenSession())
            {
                _controller = new ProjectsController(
                    _mockCommandProcessor.Object,
                    _mockUserContext.Object,
                    _mockProjectsViewModelBuilder.Object,
                    _mockTeamsViewModelBuilder.Object,
                    _mockStreamItemsViewModelBuilder.Object,
                    _mockObservationsViewModelBuilder.Object,
                    _mockPostsViewModelBuilder.Object,
                    _mockReferenceSpeciesViewModelBuilder.Object,
                    documentSession
                    );
            }
        }
Exemple #2
0
        public void TestInitialize()
        {
            _documentStore = DocumentStoreHelper.StartRaven();

            using (var documentSession = _documentStore.OpenSession())
            {
            }
        }
        public void TestInitialize()
        {
            _documentStore                    = DocumentStoreHelper.StartRaven();
            _mockCommandProcessor             = new Mock <ICommandProcessor>();
            _mockObservationsViewModelBuilder = new Mock <IObservationsViewModelBuilder>();
            _mockUserContext                  = new Mock <IUserContext>();

            _controller = new ObservationsController(
                _mockCommandProcessor.Object,
                _mockUserContext.Object,
                _mockObservationsViewModelBuilder.Object
                );
        }
Exemple #4
0
        public void TestInitialize()
        {
            _documentStore               = DocumentStoreHelper.StartRaven();
            _mockCommandProcessor        = new Mock <ICommandProcessor>();
            _mockUserContext             = new Mock <IUserContext>();
            _mockAccountViewModelBuilder = new Mock <IAccountViewModelBuilder>();

            _controller = new AccountController(
                _mockCommandProcessor.Object,
                _mockUserContext.Object,
                _documentStore.OpenSession(),
                _mockAccountViewModelBuilder.Object
                );
        }
Exemple #5
0
        public void TestInitialize()
        {
            //_documentStore = DocumentStoreHelper.ServerDocumentStore();
            _documentStore = DocumentStoreHelper.StartRaven();

            _mockCommandProcessor = new Mock <ICommandProcessor>();

            _mockUserContext = new Mock <IUserContext>();

            _controller = new HomeController(
                _mockCommandProcessor.Object,
                _mockUserContext.Object
                );
        }
Exemple #6
0
        public void TestInitialize()
        {
            _documentStore                   = DocumentStoreHelper.StartRaven();
            _mockCommandProcessor            = new Mock <ICommandProcessor>();
            _mockUserContext                 = new Mock <IUserContext>();
            _mockUserViewModelBuilder        = new Mock <IUserViewModelBuilder>();
            _mockStreamItemsViewModelBuilder = new Mock <IStreamItemsViewModelBuilder>();
            _mockProjectsViewModelBuilder    = new Mock <IProjectsViewModelBuilder>();
            _mockPostsViewModelBuilder       = new Mock <IPostsViewModelBuilder>();
            _mockTeamsViewModelBuilder       = new Mock <ITeamsViewModelBuilder>();

            _controller = new UsersController(
                _mockCommandProcessor.Object,
                _mockUserContext.Object,
                _mockUserViewModelBuilder.Object,
                _mockStreamItemsViewModelBuilder.Object,
                _mockProjectsViewModelBuilder.Object,
                _mockPostsViewModelBuilder.Object,
                _mockTeamsViewModelBuilder.Object
                );
        }
Exemple #7
0
        public void TestInitialize()
        {
            _documentStore        = DocumentStoreHelper.StartRaven();
            _mockUserContext      = new Mock <IUserContext>();
            _mockCommandProcessor = new Mock <ICommandProcessor>();
            _mockOrganisationsViewModelBuilder    = new Mock <IOrganisationsViewModelBuilder>();
            _mockStreamItemsViewModelBuilder      = new Mock <IStreamItemsViewModelBuilder>();
            _mockTeamsViewModelBuilder            = new Mock <ITeamsViewModelBuilder>();
            _mockPostsViewModelBuilder            = new Mock <IPostsViewModelBuilder>();
            _mockMemberViewModelBuilder           = new Mock <IMemberViewModelBuilder>();
            _mockReferenceSpeciesViewModelBuilder = new Mock <IReferenceSpeciesViewModelBuilder>();

            _controller = new OrganisationsController(
                _mockCommandProcessor.Object,
                _mockUserContext.Object,
                _mockOrganisationsViewModelBuilder.Object,
                _mockStreamItemsViewModelBuilder.Object,
                _mockTeamsViewModelBuilder.Object,
                _mockPostsViewModelBuilder.Object,
                _mockMemberViewModelBuilder.Object,
                _mockReferenceSpeciesViewModelBuilder.Object
                );
        }
Exemple #8
0
 public void TestInitialize()
 {
     _mockCommandProcessor = new Mock <ICommandProcessor>();
     _mockUserContext      = new Mock <IUserContext>();
     _documentStore        = DocumentStoreHelper.StartRaven();
 }
Exemple #9
0
 public void TestInitialize()
 {
     _store = DocumentStoreHelper.StartRaven();
 }
Exemple #10
0
 public void TestInitialize()
 {
     _store = DocumentStoreHelper.StartRaven();
     _mockMediaFilePathService = new Mock <IMediaFilePathService>();
 }
 public void TestInitialize()
 {
     // start raven without seeding with data
     _store = DocumentStoreHelper.StartRaven();
 }