Example #1
0
 private Mock <ExposedFlexiAlertBlockParser> CreateMockExposedFlexiAlertBlockParser(IFlexiAlertBlockFactory flexiAlertBlockFactory = null)
 {
     return(_mockRepository.Create <ExposedFlexiAlertBlockParser>(flexiAlertBlockFactory ?? _mockRepository.Create <IFlexiAlertBlockFactory>().Object));
 }
Example #2
0
 public ExposedFlexiAlertBlockParser(IFlexiAlertBlockFactory flexiAlertBlockFactory) : base(flexiAlertBlockFactory)
 {
 }
Example #3
0
 private ExposedFlexiAlertBlockParser CreateExposedFlexiAlertBlockParser(IFlexiAlertBlockFactory flexiAlertBlockFactory = null)
 {
     return(new ExposedFlexiAlertBlockParser(flexiAlertBlockFactory ?? _mockRepository.Create <IFlexiAlertBlockFactory>().Object));
 }
 /// <summary>
 /// Creates a <see cref="FlexiAlertBlockParser"/>.
 /// </summary>
 /// <param name="flexiAlertBlockFactory">The factory for building <see cref="FlexiAlertBlock"/>s.</param>
 /// <exception cref="ArgumentNullException">Thrown if <paramref name="flexiAlertBlockFactory"/> is <c>null</c>.</exception>
 public FlexiAlertBlockParser(IFlexiAlertBlockFactory flexiAlertBlockFactory)
 {
     OpeningCharacters       = new[] { _openingChar };
     _flexiAlertBlockFactory = flexiAlertBlockFactory ?? throw new ArgumentNullException(nameof(flexiAlertBlockFactory));
 }