Beispiel #1
0
        public void TicketModel_CloseTicketShouldUpdateTicketStatus()
        {
            var expected = "Closed";

            ticket.CloseTicket();
            var actual = ticket.TicketStatus;

            Assert.Equal(expected, actual);
        }
Beispiel #2
0
        public void TicketModel_CloseTicketShouldUpdateTicketDateTimeFields()
        {
            var timeBeforeUpdate = ticket.TicketUpdatedDateTime;

            ticket.CloseTicket();
            var timeAfterUpdate = ticket.TicketUpdatedDateTime;

            Assert.NotEqual(timeBeforeUpdate, timeAfterUpdate);
            Assert.Equal(ticket.TicketUpdatedDateTime, ticket.TicketClosedDateTime);
        }