public string Format(int i) { string data = _bar.Read(); var format = new string('#', i); return($"{format} {data} {format}"); }
public void Write() { string data = _bar.Read(); _color.Write(ConsoleColor.Yellow, () => Console.WriteLine($"Foo => {data}")); }
public void Write() { string data = _bar.Read(); _color.Write(ConsoleColor.Yellow, () => Console.WriteLine($"Foo => {data}")); foreach (var b in _beeps) { b.Beep(); } }