public void Handle(VehicleAlreadyCleanSignal signal) { _memory.TryGet("VWSS", out VehicleWashingStartedSignal _signal); _signal.InvoiceCallback.Invoke("No wash step was applied since the vehicle is already clean!"); _memory.Flush(); }
public void Handle(VehicleReadySignal signal) { _memory.TryGet("VWSS", out VehicleWashingStartedSignal _signal); _signal.InvoiceCallback.Invoke(GenerateInvoiceReport()); _memory.Flush(); }