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