Exemplo n.º 1
0
        public void NoCachedDataTest()
        {
            _fileops.Exists("").ReturnsForAnyArgs(false);
            var cachedData = new CachedData(_fileops);

            Assert.AreEqual(false, cachedData.HasCachedData);
        }
Exemplo n.º 2
0
 public CachedData(IFileOperations fileops)
 {
     _fileOps   = fileops;
     _haveCache = _fileOps.Exists(_fileName);
 }
Exemplo n.º 3
0
 public Task <bool> Exists(string path)
 {
     return(Task.Run(() => _synchronousFileOperations.Exists(path)));
 }