Esempio n. 1
0
		public StorageTest()
		{
			var configuration = new InMemoryRavenConfiguration
			                    {
				                    Settings = new NameValueCollection(), 
									FileSystem =
									{
										DataDirectory = "test"
									}
			                    };

			IOExtensions.DeleteDirectory("test");
			transactionalStorage = new TransactionalStorage(configuration);
			transactionalStorage.Initialize();
		}
Esempio n. 2
0
		public StorageTest()
		{
			var configuration = new InMemoryRavenConfiguration
			                    {
				                    Settings = new NameValueCollection(), 
									FileSystem =
									{
										DataDirectory = "test"
									}
			                    };

			IOExtensions.DeleteDirectory("test");
			transactionalStorage = new TransactionalStorage(configuration);
			transactionalStorage.Initialize(new UuidGenerator(), new OrderedPartCollection<AbstractFileCodec>());
		}
Esempio n. 3
0
		public PagesTests()
		{
			var configuration = new InMemoryRavenConfiguration
			{
				FileSystem =
				{
					DataDirectory = "test"
				},
				Settings = new NameValueCollection
				           {
					           { Constants.MetadataEtagField, Guid.Empty.ToString() }
				           }
			};

			IOExtensions.DeleteDirectory("test");
			storage = new TransactionalStorage(configuration);
			storage.Initialize();
		}