public ItemInstance Convert(ItemInstanceDto k) { ItemInstance item = k.Adapt <BoxInstance>() ?? k.Adapt <SpecialistInstance>() ?? k.Adapt <WearableInstance>() ?? k.Adapt <UsableInstance>() ?? k.Adapt <ItemInstance>(); item.Item = _items.Find(s => s.VNum == k.ItemVNum); return(item); }
public ItemInstance Convert(ItemInstanceDto k) { ItemInstance item = k.Adapt <ItemInstance>(); item.Item = _items.Find(s => s.VNum == k.ItemVNum); return(item); }
public void ItemInstanceDtoToItemInstanceEntity() { var itemInstanceDto = new ItemInstanceDto(); var itemInstanceEntity = itemInstanceDto.Adapt <ItemInstance>(); Assert.IsNotNull(itemInstanceEntity); }