public void Should_Return_ParsedValue_When_Passed_Model_AutoData(ICustomParser customParser, DataModel model) { //Arrange var sut = new CustomParserWrapper(customParser); //Act var result = sut.Parse(model); //Assert Assert.NotNull(result); Assert.Equal($"{nameof(DataModel)}: []", result); }
public void Register(Type type, ICustomParser customParser) { this.parsers.Add(type, customParser); }
public void Register <T>(ICustomParser customParser) { this.Register(typeof(T), customParser); }
public CustomParserWrapper(ICustomParser customParser) { this.customParser = customParser; }
public PropPair(PropertyInfo propertyInfo, ICustomParser customParser) { PropertyInfo = propertyInfo; CustomParser = customParser; }