public void EtpUris_GetUri_Can_Get_Log_ChannelSet_200_ChannelIndex_Uri() { var channelIndex = new Witsml200.ComponentSchemas.ChannelIndex { Mnemonic = "MD" }; var channel = new Witsml200.Channel { Uuid = _data.Uid(), Mnemonic = "ROP", Index = new List <Witsml200.ComponentSchemas.ChannelIndex> { channelIndex } }; var channelSet = new Witsml200.ChannelSet { Uuid = _data.Uid(), Channel = new List <Witsml200.Channel> { channel } }; var log = new Witsml200.Log { Uuid = _data.Uid(), ChannelSet = new List <Witsml200.ChannelSet> { channelSet } }; var uri = channelIndex.GetUri(log, channelSet); Assert.IsTrue($"eml://witsml20/Log({log.Uuid})/ChannelSet({channelSet.Uuid})/ChannelIndex({channelIndex.Mnemonic})".EqualsIgnoreCase(uri.ToString())); Assert.AreEqual(ObjectTypes.ChannelIndex.ToPascalCase(), uri.ObjectType); Assert.AreEqual(channelIndex.Mnemonic, uri.ObjectId); }
public void EtpUris_GetUri_Can_Get_Channel_200_ChannelIndex_Uri() { var channelIndex = new Witsml200.ComponentSchemas.ChannelIndex { Mnemonic = "MD" }; var channel = new Witsml200.Channel { Uuid = _data.Uid(), Mnemonic = "ROP", Index = new List <Witsml200.ComponentSchemas.ChannelIndex> { channelIndex } }; var uri = channelIndex.GetUri(channel); Assert.IsTrue($"eml://witsml20/Channel({channel.Uuid})/ChannelIndex({channelIndex.Mnemonic})".EqualsIgnoreCase(uri.ToString())); Assert.AreEqual(ObjectTypes.ChannelIndex, uri.ObjectType); Assert.AreEqual(channelIndex.Mnemonic, uri.ObjectId); }