コード例 #1
0
        public void Can_Confirm_ProductKey_And_ProductVariantId_Exists_In_Collection()
        {
            //// Arrange - in Init

            //// Act
            var pKeyExists  = _extendedData.ContainsProductKey();
            var pvKeyExists = _extendedData.ContainsProductVariantKey();

            //// Assert
            Assert.IsTrue(pKeyExists);
            Assert.IsTrue(pvKeyExists);
        }
コード例 #2
0
 /// <summary>
 /// True/false indicating whether or not this extended data collection contains information
 /// which could define a <see cref="IProductVariant"/>
 /// </summary>
 /// <param name="extendedData">
 /// The extended Data.
 /// </param>
 /// <returns>
 /// The <see cref="bool"/>.
 /// </returns>
 public static bool DefinesProductVariant(this ExtendedDataCollection extendedData)
 {
     return(extendedData.ContainsProductVariantKey() && extendedData.ContainsProductKey());
 }