コード例 #1
0
        private static ValueOriginSource create(ValueOriginSourceId valueOriginSourceId, string display, ApplicationIcon icon)
        {
            var valueOriginType = new ValueOriginSource(valueOriginSourceId, display, icon);

            _allValueOriginSources.Add(valueOriginType);
            return(valueOriginType);
        }
コード例 #2
0
        private static ValueOriginSource create(ValueOriginSourceId valueOriginSourceId, string display, string iconName = null)
        {
            var valueOriginType = new ValueOriginSource(valueOriginSourceId, display, iconName);

            _allValueOriginSources.Add(valueOriginType);
            return(valueOriginType);
        }
コード例 #3
0
 internal ValueOriginSource(ValueOriginSourceId id, string display, ApplicationIcon icon)
 {
     Id      = id;
     Display = display;
     Icon    = icon;
 }
コード例 #4
0
 public static ValueOriginSource ById(ValueOriginSourceId valueOriginSourceId)
 {
     return(_allValueOriginSources[valueOriginSourceId]);
 }
コード例 #5
0
 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);
 }
コード例 #6
0
 internal ValueOriginSource(ValueOriginSourceId id, string display, string iconName)
 {
     Id       = id;
     Display  = display;
     IconName = iconName;
 }