public virtual StoryMetaData Scan(object testObject, Type explicityStoryType = null) { var specification = testObject as ISpecification; if (specification == null) return null; string specificationTitle = CreateSpecificationTitle(specification); var story = new StoryAttribute() {Title = specificationTitle}; return new StoryMetaData(specification.Story, story); }
public StoryMetaData(Type storyType, StoryAttribute storyAttribute) { var title = storyAttribute.Title; if (string.IsNullOrEmpty(title)) title = NetToString.Convert(storyType.Name); Type = storyType; Title = title; AsA = storyAttribute.AsA; IWant = storyAttribute.IWant; SoThat = storyAttribute.SoThat; }
public StoryMetaData(Type storyType, StoryAttribute storyAttribute) { var title = storyAttribute.Title; if (string.IsNullOrEmpty(title)) { title = NetToString.Convert(storyType.Name); } Type = storyType; Title = title; AsA = storyAttribute.AsA; IWant = storyAttribute.IWant; SoThat = storyAttribute.SoThat; }