private void WriteEpic(SbeEpic epic) { xml.StartElement("epic"); xml.StartElement("features"); foreach (var feature in epic.GetFeatures()) { WriteFeature(feature); } xml.EndElement(); xml.EndElement(); }
private static SbeEpic GetCurrentEpic(SbeAssembly assembly, SpecflowContextWrapper specflowContext) { var epicName = specflowContext.GetEpicName(); if (!assembly.Epics.TryGetValue(epicName, out SbeEpic epic)) { epic = new SbeEpic { Name = epicName, }; assembly.Epics.Add(epicName, epic); } return(epic); }
private static SbeFeature GetCurrentFeature(SbeEpic epic, SpecflowContextWrapper specflowContext) { var title = specflowContext.FeatureTitle; if (!epic.Features.TryGetValue(title, out SbeFeature feature)) { feature = new SbeFeature { Title = specflowContext.FeatureTitle, Tags = specflowContext.FeatureTags, }; epic.Features.Add(title, feature); } return(feature); }