public void FilterBefore_ShouldIgnoreHome() { var result = new ManualBackgroundSyncService( new FakeISynchronize(new List <FileIndexItem>()), new FakeIQuery(), new FakeIWebSocketConnectionsService(), new FakeMemoryCache(new Dictionary <string, object>()), new FakeIWebLogger(), new FakeIUpdateBackgroundTaskQueue(), GetScope()) .FilterBefore(new List <FileIndexItem> { new FileIndexItem("/") { Status = FileIndexItem.ExifStatus.Ok } }); Assert.AreEqual(0, result.Count); }
public void FilterBefore_NotFoundShouldPass() { var result = new ManualBackgroundSyncService( new FakeISynchronize(new List <FileIndexItem>()), new FakeIQuery(), new FakeIWebSocketConnectionsService(), new FakeMemoryCache(new Dictionary <string, object>()), new FakeIWebLogger(), new FakeIUpdateBackgroundTaskQueue(), GetScope()) .FilterBefore(new List <FileIndexItem> { new FileIndexItem("/test.jpg") { Status = FileIndexItem.ExifStatus.NotFoundSourceMissing } }); Assert.AreEqual(1, result.Count); Assert.AreEqual("/test.jpg", result[0].FilePath); }