public Safe(string _safeProdcuent, LicenseWarrantyEnum licenseWarranty = LicenseWarrantyEnum.OneYearWarranty) { this.safeProducent = _safeProdcuent; this.licenceStructure = new LicenceStructure(); }
public LicenceStructure(int licenceNumber, LicenseWarrantyEnum licenseWarranty = LicenseWarrantyEnum.OneYearWarranty) { this.LicenceNumber = new Random().Next(0, 10000); this.LicenseDateIssued = DateTime.Now; this.LicenseWarranty = licenseWarranty; }
public void BuyOwnSafe(string producent, LicenseWarrantyEnum licenseWarranty = LicenseWarrantyEnum.OneYearWarranty) { this.safe = new Safe(producent, licenseWarranty); }