private Mock <ExposedFlexiSectionBlockParser> CreateMockExposedFlexiSectionBlockParser(IFlexiSectionBlockFactory flexiSectionBlockFactory = null)
 {
     return(_mockRepository.Create <ExposedFlexiSectionBlockParser>(flexiSectionBlockFactory ?? _mockRepository.Create <IFlexiSectionBlockFactory>().Object));
 }
 public ExposedFlexiSectionBlockParser(IFlexiSectionBlockFactory flexiSectionBlockFactory) :
     base(flexiSectionBlockFactory)
 {
 }
 private ExposedFlexiSectionBlockParser CreateExposedFlexiSectionBlockParser(IFlexiSectionBlockFactory flexiSectionBlockFactory = null)
 {
     return(new ExposedFlexiSectionBlockParser(flexiSectionBlockFactory ?? _mockRepository.Create <IFlexiSectionBlockFactory>().Object));
 }
 /// <summary>
 /// Creates a <see cref="FlexiSectionBlockParser"/>.
 /// </summary>
 /// <param name="flexiSectionBlockFactory">The factory for building <see cref="FlexiSectionBlock"/>s.</param>
 /// <exception cref="ArgumentNullException">Thrown if <paramref name="flexiSectionBlockFactory"/> is <c>null</c>.</exception>
 public FlexiSectionBlockParser(IFlexiSectionBlockFactory flexiSectionBlockFactory)
 {
     OpeningCharacters         = new[] { '#' };
     _flexiSectionBlockFactory = flexiSectionBlockFactory ?? throw new ArgumentNullException(nameof(flexiSectionBlockFactory));
 }