Example #1
0
		public void SetUp()
		{
			ApplicationSettings = new ApplicationSettings()
			{
				ConnectionString = ConnectionString, 
				DataStoreType = DataStoreType,
				LoggingTypes =  "none"
			};

			Repository = GetRepository();
			Repository.Startup(ApplicationSettings.DataStoreType, ApplicationSettings.ConnectionString, false);
			Repository.Install(ApplicationSettings.DataStoreType, ApplicationSettings.ConnectionString, false);
		}
Example #2
0
        public void Configure()
        {
            ObjectFactory.Initialize(Initialize);
            ObjectFactory.Configure(Configure);

            // Get the latest instance of the repository, it may have changed after configuration
            _repository = ObjectFactory.GetInstance<IRepository>();

            // Tell the current repository to do its thing
            _repository.Startup(_applicationSettings.DataStoreType,
                                _applicationSettings.ConnectionString,
                                _applicationSettings.UseObjectCache);

            _hasRunInitialization = true;
        }