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); } }
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); }