public HtmlService(
     ISectionExtractor sectionExtractor,
     IHtmlStripper htmlStripper,
     ISectionSplitter sectionSplitter,
     IQuestionAssembler questionAssembler)
 {
     _sectionExtractor  = sectionExtractor;
     _htmlStripper      = htmlStripper;
     _sectionSplitter   = sectionSplitter;
     _questionAssembler = questionAssembler;
 }
    public void SetUp()
    {
        _mockSectionExtractor  = Substitute.For <ISectionExtractor>();
        _mockHtmlStripper      = Substitute.For <IHtmlStripper>();
        _mockSectionSplitter   = Substitute.For <ISectionSplitter>();
        _mockQuestionAssembler = Substitute.For <IQuestionAssembler>();

        _htmlService = new HtmlService(
            _mockSectionExtractor,
            _mockHtmlStripper,
            _mockSectionSplitter,
            _mockQuestionAssembler);
    }
Beispiel #3
0
 public void SetUp()
 {
     _sectionSplitter = new SectionSplitter();
 }