public void NoCachedDataTest() { _fileops.Exists("").ReturnsForAnyArgs(false); var cachedData = new CachedData(_fileops); Assert.AreEqual(false, cachedData.HasCachedData); }
public CachedData(IFileOperations fileops) { _fileOps = fileops; _haveCache = _fileOps.Exists(_fileName); }
public Task <bool> Exists(string path) { return(Task.Run(() => _synchronousFileOperations.Exists(path))); }