Example #1
0
 private IReadOnlyDictionary <DeviceStatus, Action <Action> > InitializeWarrantyMap()
 => new Dictionary <DeviceStatus, Action <Action> >()
 {
     [DeviceStatus.AllFine().NotOperational()] = ClaimWarranty
 };
Example #2
0
 public void NotOperational()
 {
     _operationalStatus = _operationalStatus.NotOperational();
 }
Example #3
0
 public void Repaired()
 {
     _operationalStatus = _operationalStatus.Repaired();
 }
Example #4
0
 public void VisibleDamage()
 {
     _operationalStatus = _operationalStatus.VisibleDamage();
 }