Beispiel #1
0
 public void WhenIMapSomeTypeEntityToSomeTypeObject()
 {
     var s = ScenarioContext.Current.Get<TypeMapStore>();
     SomeTypeObject sto = new SomeTypeObject();
     s.Map<SomeTypeEntity, SomeTypeObject>(ScenarioContext.Current.Get<SomeTypeEntity>(), sto);
     ScenarioContext.Current.Set(sto);
 }
Beispiel #2
0
 public void GivenIHaveAnSomeTypeObjectWithTheFollowingProperties(Table table)
 {
     SomeTypeObject sto = new SomeTypeObject();
     sto.AccountNumber = table.Rows[0][0].ToString();
     List<SomeTypeItem> itemList = new List<SomeTypeItem>();
     SomeTypeItem sti = new SomeTypeItem();
     sti.ItemNumber = table.Rows[0][1].ToString();
     itemList.Add(sti);
     SomeTypeItem sti2 = new SomeTypeItem();
     sti2.ItemNumber = table.Rows[1][1].ToString();
     itemList.Add(sti2);
     sto.SomeTypeItemList = itemList;
     sto.Bytes = new byte[] { 12, 3, 5, 76, 8, 0, 6, 125 };
     sto.StringArray = new string[] { "Hello" };
     sto.ObjectArray = new SomeTypeItem[] { sti };
     ScenarioContext.Current.Set(sto);
 }