public override void Setup() { base.Setup(); _view = new StubImageBrowserView(); _viewAsStub = ((StubImageBrowserView)_view); _directoryTree = new StubDirectoryTree(); _dirTreeAsStub = ((StubDirectoryTree)_directoryTree); _viewAsStub.DirectoryTree = _directoryTree; }
public TestLoader ( ILogger <TestLoader> logger, IDirectoryTree directoryTree, IResourceProvider resourceProvider, ITestFileSerializer testFileSerializer ) { _logger = logger; _directoryTree = directoryTree; _resourceProvider = resourceProvider; _testFileSerializer = testFileSerializer; }
public static IEnumerable <IDirectoryTreeNode> WalkSilently([NotNull] this IDirectoryTree directoryTree, [NotNull] string path) { if (directoryTree == null) { throw new ArgumentNullException(nameof(directoryTree)); } if (path == null) { throw new ArgumentNullException(nameof(path)); } return(directoryTree.Walk(path, _ => { })); }
public RelativeDirectoryTree([NotNull] IDirectoryTree directoryTree, [NotNull] string basePath) { _directoryTree = directoryTree ?? throw new ArgumentNullException(nameof(directoryTree)); _basePath = basePath ?? throw new ArgumentNullException(nameof(basePath)); }