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); }
/// <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()); }