Exemple #1
0
        public void TestMethodInvokeMapping()
        {
            MethodInvokeMapping.QuoteTarget target = new MethodInvokeMapping.QuoteTarget();
            QuoteTargetBase data = target.GetQuote(CreateQuote());

            Validate(data);
        }
Exemple #2
0
        public void TestMapper()
        {
            Mapper.QuoteMapper mapper = new Mapper.QuoteMapper();
            QuoteTargetBase    data   = mapper.To(CreateQuote());

            Validate(data);
        }
Exemple #3
0
 private void Validate(QuoteTargetBase target)
 {
     Assert.IsNotNull(target);
     Assert.AreEqual <string>(QuoteID, target.SequenceNo);
     Assert.AreEqual <string>(QuoteCompnary, target.CompnayName);
 }