private static ValueOriginSource create(ValueOriginSourceId valueOriginSourceId, string display, ApplicationIcon icon) { var valueOriginType = new ValueOriginSource(valueOriginSourceId, display, icon); _allValueOriginSources.Add(valueOriginType); return(valueOriginType); }
private static ValueOriginSource create(ValueOriginSourceId valueOriginSourceId, string display, string iconName = null) { var valueOriginType = new ValueOriginSource(valueOriginSourceId, display, iconName); _allValueOriginSources.Add(valueOriginType); return(valueOriginType); }
internal ValueOriginSource(ValueOriginSourceId id, string display, ApplicationIcon icon) { Id = id; Display = display; Icon = icon; }
public static ValueOriginSource ById(ValueOriginSourceId valueOriginSourceId) { return(_allValueOriginSources[valueOriginSourceId]); }
public void should_return_true_if_they_have_the_same_method_source_description_and_false_otherwise(ValueOriginSourceId source, ValueOriginDeterminationMethodId method, string description, bool equal) { _targetValueOrigin.Source = ValueOriginSources.ById(source); _targetValueOrigin.Method = ValueOriginDeterminationMethods.ById(method); _targetValueOrigin.Description = description; _sourceValueOrigin.Equals(_targetValueOrigin).ShouldBeEqualTo(equal); }
internal ValueOriginSource(ValueOriginSourceId id, string display, string iconName) { Id = id; Display = display; IconName = iconName; }