/// <summary> /// Initializes a new instance of the <see cref="Specifier" /> class. /// </summary> /// <param name="cacheItem">The cache item.</param> internal Specifier(MarketSpecifierCacheItem cacheItem) { Contract.Requires(cacheItem != null); Name = cacheItem.Name; Type = cacheItem.Type; }
/// <summary> /// Initializes a new instance of the <see cref="Specifier"/> class. /// </summary> /// <param name="cacheItem">The cache item.</param> internal Specifier(MarketSpecifierCacheItem cacheItem) { Guard.Argument(cacheItem, nameof(cacheItem)).NotNull(); Name = cacheItem.Name; Type = cacheItem.Type; }
private static void ValidateSpecifier(desc_specifiersSpecifier msg, MarketSpecifierCacheItem ci) { Assert.AreEqual(msg.type, ci.Type); Assert.AreEqual(msg.name, ci.Name); }