protected void ThenTheFilesShouldBePickedUpIntoTheLog() { SpinWait(() => _repo.GetEntries(_flowEntity).Count() < 5); // ensure log populated with three entities. var log = _repo.Get(_flowEntity); Assert.Equal(5, log.Entries.Count); Assert.True(_repo.Contains(_flowEntity, Path.GetFullPath($@"{_sourceDir1}\File1.csv"))); Assert.True(_repo.Contains(_flowEntity, Path.GetFullPath($@"{_sourceDir1}\File2.csv"))); Assert.False(_repo.Contains(_flowEntity, Path.GetFullPath($@"{_sourceDir1}\File3.txt"))); }
protected void WhenReadingTheFlowFileAsASimpleDataSourceFile() { // flow files and data files are the same _dataFileRepo = new DataSourceLogRepo(_dataSourceDir); this._flowFileDb = _flowFileRepo.Get(typeof(TestEntity1), "code"); this._dataSourceDb = _dataFileRepo.Get(typeof(TestEntity1)); }