Esempio n. 1
0
        public void EtpUri_12_Append_Can_Append_Object_Type_To_Root_Uri()
        {
            var uri20   = new EtpUri("eml:///");
            var uriWell = uri20.Append("witsml", "2.0", "Well", null);

            Assert.IsTrue(uriWell.IsValid);
            Assert.IsFalse(uriWell.IsBaseUri);
            Assert.AreEqual("2.0", uriWell.Version);
            Assert.AreEqual("Well", uriWell.ObjectType);

            Assert.AreEqual(uri20, uriWell.Parent);
        }
Esempio n. 2
0
        public void EtpUri_Append_Can_Append_Object_Type_To_Base_Uri()
        {
            var uri14   = new EtpUri("eml://witsml14");
            var uriWell = uri14.Append("well");

            Assert.IsTrue(uriWell.IsValid);
            Assert.IsFalse(uriWell.IsBaseUri);
            Assert.AreEqual("1.4.1.1", uriWell.Version);
            Assert.AreEqual("well", uriWell.ObjectType);

            Assert.AreEqual(uri14, uriWell.Parent);
            Assert.IsTrue(uri14.IsRelatedTo(uriWell));
        }
Esempio n. 3
0
        public void EtpUri_Can_Parse_Witsml_1411_Wellbore_Uri()
        {
            var uuid        = Uuid();
            var uriWell     = new EtpUri("eml://witsml14/well(" + Uuid() + ")");
            var uriWellbore = uriWell.Append("wellbore", uuid);

            Assert.IsNotNull(uriWellbore);
            Assert.IsTrue(uriWellbore.IsValid);
            Assert.AreEqual(uuid, uriWellbore.ObjectId);
            Assert.AreEqual("wellbore", uriWellbore.ObjectType);
            Assert.AreEqual("1.4.1.1", uriWellbore.Version);

            Assert.IsTrue(uriWellbore.IsRelatedTo(uriWell));
            Assert.AreEqual(uriWell, uriWellbore.Parent);
        }