public PropertyWrapper( ICardDataAccess cardDataAccess, IPropertyTypeDataAccess propertyTypeDataAccess, int ownerId, int propertyTypeId) { _owner = new PropWrapper <Card>(() => cardDataAccess.Get(ownerId)); _propertyType = new PropWrapper <PropertyType>(() => propertyTypeDataAccess.Get(propertyTypeId)); }
public HardLinkWrapper(ICardDataAccess cardDataAccess, int originId, int targetId) { CardDataAccess = cardDataAccess; _origin = new PropWrapper <Card>(() => cardDataAccess.Get(originId)); _target = new PropWrapper <Card>(() => cardDataAccess.Get(targetId)); }