Exemple #1
0
 public void WhenIMapAccountEntityToAccountObjectAndCatchException()
 {
     try
     {
         var s = ScenarioContext.Current.Get<TypeMapStore>();
         AccountObject ao = new AccountObject();
         s.Map<AccountEntity, AccountObject>(ScenarioContext.Current.Get<AccountEntity>(), ao);
         ScenarioContext.Current.Set(ao);
     }
     catch (TypeMapException e)
     {
         ScenarioContext.Current.Set(e);
     }
 }
Exemple #2
0
 public void WhenIMapAccountEntityToAccountObject()
 {
     var s = ScenarioContext.Current.Get<TypeMapStore>();
     AccountObject ao = new AccountObject();
     s.Map<AccountEntity, AccountObject>(ScenarioContext.Current.Get<AccountEntity>(), ao);
     ScenarioContext.Current.Set(ao);
 }