Exemple #1
0
        public void TestUpdatingTicketStatus()
        {
            var role = new Role(new [] { Permission.UpdateTicketStatus });
            var user = new User(role);

            user.Login();
            var planningService = new PlanningService(new HttpContext());
            var ticket          = planningService.NewTicket();

            planningService.UpdateTicketStatus(user, ticket.TicketId, TaskStatus.InProgress);
            Assert.That(ticket.Status, Is.EqualTo(TaskStatus.InProgress));
        }