public void TestMethodInvokeMapping() { MethodInvokeMapping.QuoteTarget target = new MethodInvokeMapping.QuoteTarget(); QuoteTargetBase data = target.GetQuote(CreateQuote()); Validate(data); }
public void TestMapper() { Mapper.QuoteMapper mapper = new Mapper.QuoteMapper(); QuoteTargetBase data = mapper.To(CreateQuote()); Validate(data); }
private void Validate(QuoteTargetBase target) { Assert.IsNotNull(target); Assert.AreEqual <string>(QuoteID, target.SequenceNo); Assert.AreEqual <string>(QuoteCompnary, target.CompnayName); }