Exemple #1
0
        public async Task CreatedIssueNoteCanBeUpdated()
        {
            //arrange
            var createdIssue = await _sut.CreateAsync(TestProjectTextId, new CreateIssueRequest(Guid.NewGuid().ToString())
            {
                Description = "Description1"
            });
            var createdIssueNote = await _sut.CreateNoteAsync(TestProjectTextId, createdIssue.Iid, new CreateNoteRequest("comment2"));

            //act
            var updatedIssueNote = await _sut.UpdateNoteAsync(TestProjectTextId, createdIssue.Iid, createdIssueNote.Id, new UpdateIssueNoteRequest("comment22"));

            //assert
            updatedIssueNote.Should().Match<Note>(n =>
                n.Body == "comment22");
        }