public void CreateEntryWorkTaskModelWithNulls()
        {
            var client = CreateClient("QAS.Multiplatform.Demo.edmx");
            var feedReader = new ResponseReader(client.GetSchemaAsync().Result);
            var commandWriter = new CommandWriter(client.GetSchemaAsync().Result);

            string xml = GetResourceAsString("WorkTaskModelWithNulls.xml");
            var document = XDocument.Parse(xml).Root;
            var row = feedReader.GetData(xml).Single();
            var entry = commandWriter.CreateEntry("WorkTaskModel", row).Entry;

            AssertElementsCountEqual(document, entry, "m", "properties");
            AssertElementsContentEqual(document, entry, "d", "Id");
            AssertElementsContentEqual(document, entry, "d", "StartDate", false);
            AssertElementsContentEqual(document, entry, "d", "EndDate", false);
            AssertElementsContentEqual(document, entry, "d", "State");
            AssertElementsContentEqual(document, entry, "d", "WorkerId");
            AssertElementsContentEqual(document, entry, "d", "CustomerId");
        }
        public void CreateEntryCustomerWithAddress()
        {
            var feedReader = new ResponseReader(_client.GetSchemaAsync().Result);
            var commandWriter = new CommandWriter(_client.GetSchemaAsync().Result);

            string xml = GetResourceAsString("SingleCustomerWithAddress.xml");
            var document = XDocument.Parse(xml).Root;
            var row = feedReader.GetData(xml).Single();
            var entry = commandWriter.CreateEntry("Customers", row).Entry;

            AssertElementsCountEqual(document, entry, "m", "properties");
            AssertElementsContentEqual(document, entry, "d", "CustomerID");
            AssertElementsContentEqual(document, entry, "d", "CompanyName");
            AssertElementsContentEqual(document, entry, "d", "Address");
            AssertElementsContentEqual(document, entry, "d", "Type");
            AssertElementsContentEqual(document, entry, "d", "City1");
            AssertElementsContentEqual(document, entry, "d", "Region");
            AssertElementsContentEqual(document, entry, "d", "PostalCode");
            AssertElementsContentEqual(document, entry, "d", "Country");
        }