public void VerifyResult()
        {
            DocumentPackageAttributesExample example = new DocumentPackageAttributesExample(Props.GetInstance());
            example.Run();

            DocumentPackage documentPackage = example.EslClient.GetPackage(example.PackageId);
            DocumentPackageAttributes attributes = documentPackage.Attributes;
            IDictionary<string, object> attributeMap = attributes.Contents;

            Assert.IsTrue(attributeMap.ContainsKey(example.ATTRIBUTE_KEY_1));
            Assert.IsTrue(attributeMap.ContainsKey(example.ATTRIBUTE_KEY_2));
            Assert.IsTrue(attributeMap.ContainsKey(example.ATTRIBUTE_KEY_3));

            Assert.AreEqual(attributeMap[example.ATTRIBUTE_KEY_1], example.ATTRIBUTE_1);
            Assert.AreEqual(attributeMap[example.ATTRIBUTE_KEY_2], example.ATTRIBUTE_2);
            Assert.AreEqual(attributeMap[example.ATTRIBUTE_KEY_3], example.ATTRIBUTE_3);
        }
Example #2
0
        public void VerifyResult()
        {
            DocumentPackageAttributesExample example = new DocumentPackageAttributesExample(Props.GetInstance());

            example.Run();

            DocumentPackage              documentPackage = example.RetrievedPackage;
            DocumentPackageAttributes    attributes      = documentPackage.Attributes;
            IDictionary <string, object> attributeMap    = attributes.Contents;

            Assert.IsTrue(attributeMap.ContainsKey(example.ATTRIBUTE_KEY_1));
            Assert.IsTrue(attributeMap.ContainsKey(example.ATTRIBUTE_KEY_2));
            Assert.IsTrue(attributeMap.ContainsKey(example.ATTRIBUTE_KEY_3));

            Assert.AreEqual(attributeMap[example.ATTRIBUTE_KEY_1], example.ATTRIBUTE_1);
            Assert.AreEqual(attributeMap[example.ATTRIBUTE_KEY_2], example.ATTRIBUTE_2);
            Assert.AreEqual(attributeMap[example.ATTRIBUTE_KEY_3], example.ATTRIBUTE_3);
        }
Example #3
0
        public void VerifyResult()
        {
            DocumentPackageAttributesExample example = new DocumentPackageAttributesExample();

            example.Run();

            DocumentPackage              documentPackage = example.RetrievedPackage;
            DocumentPackageAttributes    attributes      = documentPackage.Attributes;
            IDictionary <string, object> attributeMap    = attributes.Contents;

            Assert.IsTrue(attributeMap.ContainsKey(ORIGIN_KEY));
            Assert.IsTrue(attributeMap.ContainsKey(example.ATTRIBUTE_KEY_1));
            Assert.IsTrue(attributeMap.ContainsKey(example.ATTRIBUTE_KEY_2));
            Assert.IsTrue(attributeMap.ContainsKey(example.ATTRIBUTE_KEY_3));

            Assert.AreEqual(example.DYNAMICS_2015, attributeMap[ORIGIN_KEY]);
            Assert.AreEqual(example.ATTRIBUTE_1, attributeMap[example.ATTRIBUTE_KEY_1]);
            Assert.AreEqual(example.ATTRIBUTE_2, attributeMap[example.ATTRIBUTE_KEY_2]);
            Assert.AreEqual(example.ATTRIBUTE_3, attributeMap[example.ATTRIBUTE_KEY_3]);
        }