public bool Compare(string expectedValue, object actualValue) { var expected = ProductCategoryValueRetriever.Parse(expectedValue); var actual = (ProductCategory)actualValue; return(expected.Name == actual.Name); }
public object Retrieve(KeyValuePair <string, string> keyValuePair, Type targetType, Type propertyType) { return(ProductCategoryValueRetriever.Parse(keyValuePair.Value)); }