protected ElementOfGift(string title, string manufacterer, string countryOfManufacturer, IMeasuredValue weight, IMeasuredValue price) { _Title = title; _Manufacturer = manufacterer; _CountryOfManufacturer = countryOfManufacturer; _Weigth = weight; _Price = price; }
public IHaveSugar FindForSugar(IMeasuredValue minSugar, IMeasuredValue maxSugar) { IHaveSugar item = null; if (minSugar.Dimension == maxSugar.Dimension) { item = _Contents.Where(x => x.Key is IHaveSugar).Select(x => x.Key).Cast<IHaveSugar>().FirstOrDefault(x => x.SugarValue.Value >= minSugar.Value && x.SugarValue.Value <= maxSugar.Value); } return item; }
public Toy(string title, string manufacterer, string countryOfManufacturer, IMeasuredValue weight, IMeasuredValue price, ToyTypes type) : base(title, manufacterer, countryOfManufacturer, weight, price) { _Type = type; }
public Sweetness(string title, string manufacterer, string countryOfManufacturer, IMeasuredValue weight, IMeasuredValue price, IMeasuredValue sugarValue, SweetnessTypes type) : base(title, manufacterer, countryOfManufacturer, weight, price) { _SugarValue = sugarValue; _Type = type; }