Пример #1
0
        public void NoCachedDataTest()
        {
            _fileops.Exists("").ReturnsForAnyArgs(false);
            var cachedData = new CachedData(_fileops);

            Assert.AreEqual(false, cachedData.HasCachedData);
        }
Пример #2
0
 public CachedData(IFileOperations fileops)
 {
     _fileOps   = fileops;
     _haveCache = _fileOps.Exists(_fileName);
 }
Пример #3
0
 public Task <bool> Exists(string path)
 {
     return(Task.Run(() => _synchronousFileOperations.Exists(path)));
 }