public async Task ShouldGetTicket() { var ticket = (await CreateTickets(1)).First(); var response = await _resource.GetAsync(ticket.Id); Assert.Equal(JsonConvert.SerializeObject(ticket), JsonConvert.SerializeObject(response)); }
public async Task GetAsync_WhenCalled_ShouldGetTicket() { var ticket = (await _resource.GetAsync(1)) .Ticket; Assert.Equal(1, ticket.Id); Assert.Equal($"My printer is on fire! 1", ticket.Subject); Assert.Equal(1.ToString(), ticket.ExternalId); Assert.Equal(1, ticket.OrganisationId); Assert.Equal(1, ticket.RequesterId); Assert.Equal(1, ticket.AssigneeId); }