Exemple #1
0
        public IDataBusStorage Create()
        {
            var fileSystemDataBusStorage = new FileSystemDataBusStorage(DirectoryPath, new ConsoleLoggerFactory(false));

            fileSystemDataBusStorage.Initialize();
            return(fileSystemDataBusStorage);
        }
        protected override void SetUp()
        {
            var directoryPath = Path.Combine(TestConfig.DirectoryPath(), "databustest");

            DeleteHelper.DeleteDirectory(directoryPath);

            _storage = new FileSystemDataBusStorage(directoryPath, new ConsoleLoggerFactory(false));
            _storage.Initialize();
        }
        protected override void SetUp()
        {
            var directoryPath = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "databustest");

            if (Directory.Exists(directoryPath))
            {
                Directory.Delete(directoryPath, true);
            }

            _storage = new FileSystemDataBusStorage(directoryPath, new ConsoleLoggerFactory(false));
            _storage.Initialize();
        }