Ejemplo n.º 1
0
        public string GetConflictMessage(ConfiguredDataSourceFactory conflictingDataSource)
        {
            var lambdasAreTheSame  = HasSameDataSourceLambdaAs(conflictingDataSource);
            var conflictIdentifier = lambdasAreTheSame ? "that" : "a";

            return($"{TargetMember.GetPath()} already has {conflictIdentifier} configured data source");
        }
Ejemplo n.º 2
0
        public string GetConflictMessage(ConfiguredDataSourceFactory conflictingDataSource)
        {
            if (HasMemberFilter)
            {
                return($"Member ignore pattern '{TargetMemberFilter}' conflicts with a configured data source");
            }

            return($"Ignored member {TargetMember.GetPath()} has a configured data source");
        }
Ejemplo n.º 3
0
        public string GetConflictMessage(UserConfiguredItemBase conflictingConfiguredItem)
        {
            if (conflictingConfiguredItem is ConfiguredDataSourceFactory conflictingDataSource)
            {
                return(GetConflictMessage(conflictingDataSource));
            }

            return($"Member {TargetMember.GetPath()} has been ignored");
        }
        public string GetConflictMessage(UserConfiguredItemBase conflictingConfiguredItem)
        {
            switch (conflictingConfiguredItem)
            {
            case ConfiguredDataSourceFactory conflictingDataSource:
                return(GetConflictMessage(conflictingDataSource));

            case ConfiguredMemberIgnoreBase conflictingMemberIgnore:
                return(GetConflictMessage(conflictingMemberIgnore));

            default:
                return($"Member {TargetMember.GetPath()} has been ignored");
            }
        }
Ejemplo n.º 5
0
        public string GetConflictMessage(ConfiguredIgnoredMember conflictingIgnoredMember)
        {
            string thisFilter = TargetMemberFilter, thatFilter = null;
            var    matcher = thisFilter ?? (thatFilter = conflictingIgnoredMember.TargetMemberFilter);

            if (matcher == null)
            {
                return($"Member {TargetMember.GetPath()} has already been ignored");
            }

            if (thisFilter == (thatFilter ?? conflictingIgnoredMember.TargetMemberFilter))
            {
                return($"Ignore pattern '{matcher}' has already been configured");
            }

            return($"Member {TargetMember.GetPath()} is already ignored by ignore pattern '{matcher}'");
        }
Ejemplo n.º 6
0
 public string GetConflictMessage(ConfiguredDataSourceFactoryBase conflictingDataSource)
 => $"Configured dictionary key member {TargetMember.GetPath()} has a configured data source";
Ejemplo n.º 7
0
 public override string GetConflictMessage(ConfiguredDataSourceFactory conflictingDataSource)
 => $"Ignored member {TargetMember.GetPath()} has a configured data source";