public void TestDataPipelineParse() { target = ParserFactory.GetOffsetParser(testFactory); OffsetItem testItem = target.ParseOffsets(GadgetTestData.DataContentBlock.RawSimpleMarkup, new ParseContext(typeof(GadgetMaster))); OffsetItem item = new OffsetItem(GadgetTestData.DataContentBlock.ExpectedSimpleOffsets); Assert.AreEqual(item.ToString(), testItem.ToString()); }
public void TestSimpleTraceParse() { ControlFactory factory = ControlFactory.GetControlFactory(TEST_FACTORY_KEY); target = ParserFactory.GetTraceOffsetParser(factory); OffsetItem testItem = target.ParseOffsets(GadgetTestData.Templates.RawSimpleMarkup, new ParseContext(typeof(ContentBlock))); OffsetItem item = new OffsetItem(GadgetTestData.Templates.ExpectedSimpleOffsets); Assert.AreEqual(item.ToString(), testItem.ToString()); }
public RemindCommand(ILogger <RemindCommand> logger, BotContext botContext, IOffsetParser parser) { _logger = logger; _botContext = botContext; _parser = parser; }