Exemplo n.º 1
0
        public void construct_and_create_directory()
        {
            var basePath = Directory.GetCurrentDirectory();
            var repo     = new StreamStateRepo(NullStandardLogger.Instance, basePath);

            Assert.Equal(basePath, repo.BasePath);;
            Assert.True(Directory.Exists(repo.BuildStreamStateDirectoryPath()));
        }
Exemplo n.º 2
0
        public void build_stream_state_directory_path()
        {
            var basePath     = Directory.GetCurrentDirectory();
            var repo         = new StreamStateRepo(NullStandardLogger.Instance, basePath);
            var expectedPath = Path.Combine(basePath, StreamStateRepo.STREAM_PATH_PREFIX + Path.DirectorySeparatorChar);

            var actualPath = repo.BuildStreamStateDirectoryPath();

            Assert.Equal(expectedPath, actualPath);
        }