public void TestMapObjMap() { Hashtable map = new Hashtable(); Complex obj = new Complex(); obj.Map = new Hashtable(); obj.Map.Add("Id", 1); map.Add("obj", obj); int id = (int)dataMapper.QueryForObject("ComplexMap", map); Assert.AreEqual(id, obj.Map["Id"]); }
public void TestInsertMapObjMapAcctInlineDefaultNull() { Hashtable map = new Hashtable(); Account acct = NewAccount6(); Complex obj = new Complex(); obj.Map = new Hashtable(); obj.Map.Add("acct", acct); map.Add("obj", obj); dataMapper.Insert("InsertComplexAccountViaInlineDefaultNull", map); Account account = (Account) dataMapper.QueryForObject("GetAccountNullableEmail", 6); AssertAccount6(account); }