public async Task Ignores_tickets_without_sharing_tags( [Frozen] FakeZendeskApi zendesk, [Frozen] Middleware.IApi middleware, Watcher sut, Ticket ticket) { ticket.Tags.Clear(); zendesk.Tickets.Add(ticket); await sut.ShareTicket(ticket.Id); await middleware.DidNotReceive().SolveTicket(Arg.Any <Middleware.EventWrapper>()); }
public async Task Sends_nothing_to_middleware_when_there_are_no_tagged_comments( [Frozen] FakeZendeskApi zendesk, [Frozen] Middleware.IApi middleware, Watcher sut, [Frozen] AuditedComment comment, [Pending.Escalated] Ticket ticket ) { // Given comment.AuditTagEvent.Value = ""; zendesk.Tickets.Add(ticket); // When await sut.ShareTicket(ticket.Id); // Then await middleware.DidNotReceive().EscalateTicket(Arg.Any <Middleware.EventWrapper>()); }