public static void ShouldProvideFormattedDescriptionOfIndependentRuleDto() { //GIVEN var dto = Any.Instance <IndependentRuleComplementDto>(); //WHEN var text = IndependentRuleMetadata.Format(dto); //THEN text.Should().Be(new RuleDescription( $"{dto.DependingPattern.Text()} {IndependentRuleMetadata.IndependentOf} {dto.DependencyType}:{dto.DependencyPattern.Pattern}" )); }
public void Log(IndependentRuleComplementDto dto) { _writeLine($"{DiscoveredRule}{IndependentRuleMetadata.Format(dto)}"); }
public void Log(IndependentRuleComplementDto dto) { Log(IndependentRuleMetadata.Format(dto)); }