public void each_up()
        {
            tempDir = Path.Combine(Environment.CurrentDirectory, Guid.NewGuid().ToString());
            var tempPath = Path.Combine(tempDir, "test.db");

            Sut = new ESENTBackingStore(tempPath, new DummyConnectionPool());
        }
Esempio n. 2
0
        public void it_should_create_the_directory_if_it_does_not_exist()
        {
            var tempDir = Path.Combine(Environment.CurrentDirectory, "it_should_create_the_directory_if_it_does_not_exist");
            var tempPath = Path.Combine(tempDir, "test.db");
            if(Directory.Exists(tempDir)) Directory.Delete(tempDir, true);

            var sut = new ESENTBackingStore(tempPath, new DummyConnectionPool());
            sut.Dispose();

            Directory.Exists(tempDir).ShouldBeTrue();
        }
Esempio n. 3
0
        public void it_should_create_an_esent_database()
        {
            var tempDir = Path.Combine(Environment.CurrentDirectory, "it_should_create_an_esent_database");
            var tempPath = Path.Combine(tempDir, "test.db");
            if(Directory.Exists(tempDir)) Directory.Delete(tempDir, true);

            var sut = new ESENTBackingStore(tempPath, new DummyConnectionPool());
            sut.Dispose();

            File.Exists(tempPath).ShouldBeTrue();
        }