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