public CardTypeWrapper(IImageDataAccess imageDataAccess, IPropertyTypeDataAccess propertyTypeDataAccess, int cardTypeId, int imageId) { Id = cardTypeId; _image = new PropWrapper <Image>(() => imageDataAccess.Get(imageId)); _propertyTypes = new PropWrapper <List <PropertyType> >(() => new List <PropertyType>(propertyTypeDataAccess.GetPropertyTypesByCardTypeId(Id.Value))); }
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 PropertyDataAccess(ICardDataAccess cardDataAccess, IPropertyTypeDataAccess propertyTypeDataAccess) { CardDataAccess = cardDataAccess; PropertyTypeDataAccess = propertyTypeDataAccess; }
public CardTypeDataAccess(IImageDataAccess imageDataAccess, IPropertyTypeDataAccess propertyTypeDataAccess) { ImageDataAccess = imageDataAccess; PropertyTypeDataAccess = propertyTypeDataAccess; }