static void Main(string[] args) { PrinterService printerService = PrinterService.Instance; while (true) { IEnumerable <IPrinter> printers = printerService.GetAll(); PrintMenu(printers); ExecuteAction(printerService, printers); } }
// GET api/printers public IEnumerable <PrinterInfo> Get() { return(PrinterService.GetAll()); }
public void GetAllIsNotNull() { List <PrinterInfo> printers = PrinterService.GetAll(); Assert.IsNotNull(printers); }