Exemplo n.º 1
0
        public void Add_UniquePrinters_CorrectResult(string name, params string[] models)
        {
            foreach (var model in models)
            {
                printerService.Add(new Printer(name, model));
            }

            var printers = printerService.GetAll();
            int i        = 0;

            foreach (var printer in printers)
            {
                Assert.AreEqual(name, printer.Name);
                Assert.AreEqual(models[i++], printer.Model);
            }
        }
 public async Task <ActionResponse <List <PrinterDto> > > GetAll()
 {
     return(await printerService.GetAll());
 }