Exemple #1
0
        public void TestPostXdsWidthCid()
        {
            Bundle xdsBundle = DemoData.GetDemoConn5CidExampleBundle();

            xdsBundle.SetBundleType(BundleType.Document);

            _deliveryResult = client.DeliverToMailbox(xdsBundle);

            if (_deliveryResult.Entries.Count != 7)
            {
                TestResult.Fail("Result bundle should contain exactly 7 resources");
            }
            if (_deliveryResult.Entries.ByResourceType <DocumentReference>().Count() != 1)
            {
                TestResult.Fail("Result bundle should contain one DocumentReference");
            }
            if (_deliveryResult.Entries.ByResourceType <Binary>().Count() != 1)
            {
                TestResult.Fail("Result bundle should contain one Binary");
            }
            HttpTests.AssertEntryIdsArePresentAndAbsoluteUrls(_deliveryResult);
        }