public void TestDeleteAirTicket_AlreadyDeletedTicket_ShouldReturnErrorMessage() { ITicketCatalog ticketCatalog = new TicketCatalog(); ticketCatalog.AddAirTicket("01", "Varna", "Sofia", "Bulgaria", DateTime.Now, 120); ticketCatalog.DeleteAirTicket("01"); var message = ticketCatalog.DeleteAirTicket("01"); Assert.AreEqual("Ticket does not exist", message); }
public void TestDeleteAirTicket_InvalidTicket_ShouldReturnErrorMessage() { ITicketCatalog ticketCatalog = new TicketCatalog(); var message = ticketCatalog.DeleteAirTicket("01"); Assert.AreEqual("Ticket does not exist", message); }
public void TestDeleteAirTicket_InitializaOne_ShouldReturnSuccessMessage() { ITicketCatalog ticketCatalog = new TicketCatalog(); ticketCatalog.AddAirTicket("01", "Varna", "Sofia", "Bulgaria", DateTime.Now, 120); var message = ticketCatalog.DeleteAirTicket("01"); Assert.AreEqual("Ticket deleted", message); }