public void SetUp()
        {
            _basePath = "some path -- the value irrelevant, it is only used for mocking";
            _tmpPath  = Path.Combine(Path.GetTempPath(), "Test_SmilePBNNetworkStoreTest_TmpPath");

            var fullZipFileName  = Path.Combine(_basePath, ZipFileForSomeType());
            var fullXdslFileName = Path.Combine(_tmpPath, XdslFileForSomeType());

            Directory.CreateDirectory(_tmpPath);
            File.WriteAllText(fullXdslFileName, Fix.CreateNetworkAsString());

            _shouldZipBeFound  = true;
            _shouldXdslBeFound = true;

            _io = Mock.Of <IIoUtils>();
            Mock.Get(_io).Setup(io => io.DirectoryExists(_basePath)).Returns(true);
            Mock.Get(_io).Setup(io => io.FileExists(fullZipFileName)).Returns(() => _shouldZipBeFound);
            Mock.Get(_io).Setup(io => io.UnzipToTempFolder(fullZipFileName)).Returns(_tmpPath);
            Mock.Get(_io).Setup(io => io.FileExists(fullXdslFileName)).Returns(() => _shouldXdslBeFound);

            _sut = new SmilePBNRecommenderStore(_basePath, _io, new TypePathUtil());
        }
 public void IsAvailable_NoRootFolder()
 {
     _sut = new SmilePBNRecommenderStore("non existing path", _io, new TypePathUtil());
     Assert.False(_sut.IsAvailable(SomeType()));
     // verify non unzip
 }
 public void Load_NoRootFolder()
 {
     _sut = new SmilePBNRecommenderStore("non existing path", _io, new TypePathUtil());
     _sut.Load(SomeType());
 }