Esempio n. 1
0
        public void TestPostXds()
        {
            Bundle xdsBundle = DemoData.GetDemoConn5ExampleBundle();

            xdsBundle.SetBundleType(BundleType.Document);

            _deliveryResult = client.DeliverToMailbox(xdsBundle);

            if (_deliveryResult.Entries.Count != 12)
            {
                TestResult.Fail("Result bundle should contain exactly two 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");
            }
        }