public void GetArchivialNetworkSourcesCommand_DoesNotReturnLocalSources()
        {
            var mockedDb = new Mock <IClientDatabase>();

            mockedDb.Setup(x => x.GetSourceLocationsAsync())
            .ReturnsAsync(new SourceLocations()
            {
                new LocalSourceLocation()
            });

            var mockedCoreSettings = new Mock <ICoreSettings>();

            var depedencies = new CmdletDependencies()
            {
                ClientDatabase = mockedDb.Object,
                CoreSettings   = mockedCoreSettings.Object
            };

            var command = new GetArchivialNetworkSourcesCommand(depedencies);

            foreach (var result in command.Invoke())
            {
                Assert.Fail("Expected no results, but at least one result was returned.");
            }
        }
        public void GetArchivialNetworkSourcesCommand_CanReturnNetworkSources()
        {
            var mockedDb = new Mock <IClientDatabase>();

            mockedDb.Setup(x => x.GetSourceLocationsAsync())
            .ReturnsAsync(new SourceLocations()
            {
                new NetworkSourceLocation()
            });

            var mockedCoreSettings = new Mock <ICoreSettings>();

            var depedencies = new CmdletDependencies()
            {
                ClientDatabase = mockedDb.Object,
                CoreSettings   = mockedCoreSettings.Object
            };

            var command = new GetArchivialNetworkSourcesCommand(depedencies);

            foreach (var result in command.Invoke())
            {
                Assert.IsNotNull(result);
                Assert.IsInstanceOfType(result, typeof(NetworkSourceLocation));
            }
        }