StoryTeller.Model.FixtureModel.ToMissingCode C# (CSharp) Метод

ToMissingCode() публичный Метод

public ToMissingCode ( bool withinParagraph = false ) : string
withinParagraph bool
Результат string
        public override string ToMissingCode(bool withinParagraph = false)
        {
            if (!IsMissing && MissingCount == 0) return FullyImplementedMessage;

            var missing = IsMissing ? _grammars.Where(x => x.IsMissing && x.key != "TODO") : _grammars.Where(x => x.key != "TODO");

            var code = $@"
    public class {key}Fixture : {typeof(Fixture).FullName}
    {{
        {missing.Select(x => x.ToMissingCode()).Join("\n")}              
    }}
";

            return code;
        }