public ServerCrawlProcess(string connectionString, string server) { var union = new ParallelUnionAllOperation( new DefinitionProcess(connectionString), new CachedSqlProcess(connectionString), new SqlAgentJobExtract(connectionString), new ReportingServicesProcess(connectionString) ); Register(union); RegisterLast(new AppendToRowOperation("server", server)); }
public void TestUnionAllPartials2() { var unionAll = new ParallelUnionAllOperation() .Add(new PartialProcessOperation() .Register( new FakeOperation( new Row { { "k1", "v1" }, { "k2", "v2" } }, new Row { { "k1", "v3" }, { "k2", "v4" } } ))) .Add(new PartialProcessOperation() .Register( new FakeOperation( new Row { { "k1", "v1" }, { "k2", "v2" } }, new Row { { "k1", "v3" }, { "k2", "v4" } }, new Row { { "key1", "value5" }, { "key2", "value6" } } ))); var results = TestOperation( unionAll , new LogOperation() ); Assert.AreEqual(5, results.Count); }