private static void CreatePrinter() { System.Console.Clear(); System.Console.WriteLine("Enter printer name"); string name = System.Console.ReadLine(); System.Console.WriteLine("Enter printer model"); string model = System.Console.ReadLine(); service.Add(PrintersFabric.Create(name, model)); }
public void Add_NullPrinter_ArgumentNullException() => Assert.Catch <ArgumentNullException>(() => printerService.Add(null));