public void TicketModel_CloseTicketShouldUpdateTicketStatus() { var expected = "Closed"; ticket.CloseTicket(); var actual = ticket.TicketStatus; Assert.Equal(expected, actual); }
public void TicketModel_CloseTicketShouldUpdateTicketDateTimeFields() { var timeBeforeUpdate = ticket.TicketUpdatedDateTime; ticket.CloseTicket(); var timeAfterUpdate = ticket.TicketUpdatedDateTime; Assert.NotEqual(timeBeforeUpdate, timeAfterUpdate); Assert.Equal(ticket.TicketUpdatedDateTime, ticket.TicketClosedDateTime); }