public void TestAddGroup1()
 {
     var settings = new Tailviewer.Settings.DataSources();
     using (var dataSources = new Tailviewer.BusinessLogic.DataSources.DataSources(_scheduler, settings))
     {
         MergedDataSource group = dataSources.AddGroup();
         group.Should().NotBeNull();
         group.Settings.Should().NotBeNull();
         settings.Should().Equal(group.Settings);
     }
 }
Exemple #2
0
        public void TestAddGroup1()
        {
            var settings = new DataSourceSettings();

            using (var dataSources = new Tailviewer.BusinessLogic.DataSources.DataSources(_logSourceFactory, _scheduler, _filesystem, settings, _bookmarks.Object))
            {
                MergedDataSource group = dataSources.AddGroup();
                group.Should().NotBeNull();
                group.Settings.Should().NotBeNull();
                settings.Should().Equal(group.Settings);
            }
        }
        public void TestAddGroup1()
        {
            var settings = new Tailviewer.Settings.DataSources();

            using (var dataSources = new Tailviewer.BusinessLogic.DataSources.DataSources(_logFileFactory, _scheduler, settings))
            {
                MergedDataSource group = dataSources.AddGroup();
                group.Should().NotBeNull();
                group.Settings.Should().NotBeNull();
                settings.Should().Equal(group.Settings);
            }
        }
Exemple #4
0
        public void TestAddGroup2()
        {
            MergedDataSource group = _dataSources.AddGroup();

            group.Id.Should().NotBe(Guid.Empty);
        }
Exemple #5
0
        public void TestConstruction1()
        {
            var model = new MergedDataSourceViewModel(_dataSources.AddGroup(), _actionCenter.Object);

            model.IsSelected.Should().BeFalse();
            model.IsExpanded.Should().BeTrue();
        }
        public void TestConstruction1()
        {
            var model = CreateMergedViewModel(_dataSources.AddGroup());

            model.IsSelected.Should().BeFalse();
            model.IsExpanded.Should().BeTrue();
        }