コード例 #1
0
        public async Task GetAllByAssignedToIdAsync_WhenCalled_ShouldGetAllTickets()
        {
            var results = await _resource.GetAllByAssignedToIdAsync(30);

            var ticket = results.First();

            Assert.Equal(30, ticket.Id);
            Assert.Equal($"My printer is on fire! 30", ticket.Subject);
            Assert.Equal(30.ToString(), ticket.ExternalId);
            Assert.Equal(30, ticket.OrganisationId);
            Assert.Equal(30, ticket.RequesterId);
            Assert.Equal(30, ticket.AssigneeId);
        }