private IReadOnlyDictionary <DeviceStatus, Action <Action> > InitializeWarrantyMap() => new Dictionary <DeviceStatus, Action <Action> >() { [DeviceStatus.AllFine().NotOperational()] = ClaimWarranty };
public void NotOperational() { _operationalStatus = _operationalStatus.NotOperational(); }
public void Repaired() { _operationalStatus = _operationalStatus.Repaired(); }
public void VisibleDamage() { _operationalStatus = _operationalStatus.VisibleDamage(); }