Пример #1
0
        public void EtpUris_GetUri_Can_Get_Log_200_Uri()
        {
            var log = new Witsml200.Log {
                Uuid = _data.Uid()
            };
            var uri = log.GetUri();

            Assert.IsTrue($"eml://witsml20/Log({ log.Uuid })".EqualsIgnoreCase(uri.ToString()));
            Assert.AreEqual("Log", uri.ObjectType);
            Assert.AreEqual(log.Uuid, uri.ObjectId);
        }
Пример #2
0
 /// <summary>
 /// Gets the <see cref="EtpUri"/> for a given <see cref="Energistics.DataAccess.WITSML200.ChannelSet"/>
 /// </summary>
 /// <param name="entity">The entity.</param>
 /// <param name="log">The log.</param>
 /// <returns>An <see cref="EtpUri"/> instance.</returns>
 public static EtpUri GetUri(this Witsml200.ChannelSet entity, Witsml200.Log log)
 {
     return(log.GetUri()
            .Append(ObjectTypes.ChannelSet, entity.Uuid));
 }