public void SimpleFlowWithObject()
        {
            //Arrange
            TwoColumnsTableFixture s2C = new TwoColumnsTableFixture("XmlDestDynamic");

            s2C.InsertTestDataSet3();
            DbSource <ExpandoObject> source = new DbSource <ExpandoObject>(SqlConnection, "XmlDestDynamic");

            //Act
            XmlDestination <ExpandoObject> dest = new XmlDestination <ExpandoObject>("./SimpleWithDynamicObject.xml", ResourceType.File);

            source.LinkTo(dest);
            source.Execute();
            dest.Wait();

            //Assert
            Assert.Equal(File.ReadAllText("res/XmlDestination/TwoColumnsSet3DynamicObject.xml"),
                         File.ReadAllText("./SimpleWithDynamicObject.xml"));
        }
        public void SimpleOnlyAttributes()
        {
            //Arrange
            TwoColumnsTableFixture s2C = new TwoColumnsTableFixture("XmlDestOnlyAttributes");

            s2C.InsertTestDataSet3();
            DbSource <MyAttributeRow> source = new DbSource <MyAttributeRow>("XmlDestOnlyAttributes", SqlConnection);

            //Act
            XmlDestination <MyAttributeRow> dest = new XmlDestination <MyAttributeRow>("./SimpleOnlyAttributes.xml", ResourceType.File);

            source.LinkTo(dest);
            source.Execute();
            dest.Wait();

            //Assert
            Assert.Equal(File.ReadAllText("res/XmlDestination/TwoColumnsAttributesSet3.xml")
                         , File.ReadAllText("./SimpleOnlyAttributes.xml"));
        }