public void ShouldReturnsView() { var ctrl = new GateInController(); var r = ctrl.Index(); Assert.NotNull(r); Assert.IsType <ViewResult>(r); }
public void ShouldCreatePdfFile() { using (var app = new App(testing: true)) { var printer = new FakePrinter(); var ctrl = new GateInController(printer, app); ctrl.CreateTicket("000"); Assert.True(printer.HasPrinted); } }