Exemplo n.º 1
0
        public void IsSatisfiedBy_WhenTicketIsOnHold_ReturnsFalse()
        {
            var ticket = CreateTicket(pausedOn: DateTimeOffset.UtcNow);
            var spec   = new GetResolvedTickets();
            var result = spec.IsSatisfiedBy(ticket);

            Assert.IsFalse(result, "Should return false when status is OnHold.");
        }
Exemplo n.º 2
0
        public void IsSatisfiedBy_WhenTicketIsPendingFeedback_ReturnsFalse()
        {
            var ticket = CreateTicket(feedbackRequestedOn: DateTimeOffset.UtcNow);
            var spec   = new GetResolvedTickets();
            var result = spec.IsSatisfiedBy(ticket);

            Assert.IsFalse(result, "Should return false when status is PendingFeedback.");
        }
Exemplo n.º 3
0
        public void IsSatisfiedBy_WhenTicketIsOpen_ReturnsFalse()
        {
            var ticket = CreateTicket();
            var spec   = new GetResolvedTickets();
            var result = spec.IsSatisfiedBy(ticket);

            Assert.IsFalse(result, "Should return false when status is Open.");
        }
Exemplo n.º 4
0
        public void IsSatisfiedBy_WhenTicketIsOverdue_ReturnsFalse()
        {
            var ticket = CreateTicket(dueDate: DateTimeOffset.UtcNow.AddDays(-1));
            var spec   = new GetResolvedTickets();
            var result = spec.IsSatisfiedBy(ticket);

            Assert.IsFalse(result, "Should return false when status is Overdue.");
        }
Exemplo n.º 5
0
        public void IsSatisfiedBy_WhenTicketIsResolved_ReturnsTrue()
        {
            var ticket = CreateTicket(resolvedOn: DateTimeOffset.UtcNow);
            var spec   = new GetResolvedTickets();
            var result = spec.IsSatisfiedBy(ticket);

            Assert.IsTrue(result, "Should return true when status is Resolved.");
        }