Example #1
0
        public override void Setup()
        {
            base.Setup();
            _view       = new StubImageBrowserView();
            _viewAsStub = ((StubImageBrowserView)_view);

            _directoryTree = new StubDirectoryTree();
            _dirTreeAsStub = ((StubDirectoryTree)_directoryTree);

            _viewAsStub.DirectoryTree = _directoryTree;
        }
Example #2
0
        public override void Setup()
        {
            base.Setup();
            _view = new StubImageBrowserView();
            _viewAsStub = ((StubImageBrowserView)_view);

            _directoryTree = new StubDirectoryTree();
            _dirTreeAsStub = ((StubDirectoryTree)_directoryTree);

            _viewAsStub.DirectoryTree = _directoryTree;
        }
Example #3
0
 public TestLoader
 (
     ILogger <TestLoader> logger,
     IDirectoryTree directoryTree,
     IResourceProvider resourceProvider,
     ITestFileSerializer testFileSerializer
 )
 {
     _logger             = logger;
     _directoryTree      = directoryTree;
     _resourceProvider   = resourceProvider;
     _testFileSerializer = testFileSerializer;
 }
Example #4
0
        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, _ => { }));
        }
Example #5
0
 public RelativeDirectoryTree([NotNull] IDirectoryTree directoryTree, [NotNull] string basePath)
 {
     _directoryTree = directoryTree ?? throw new ArgumentNullException(nameof(directoryTree));
     _basePath      = basePath ?? throw new ArgumentNullException(nameof(basePath));
 }