public async Task TestGetNoteById()
        {
            // arrange
            var note = await _persistence.CreateNoteAsync(null, NoteTestModelV1.GenerateRandomNote());

            // act
            var result = await _persistence.GetNoteByIdAsync(null, note.Id);

            // assert
            NoteTestModelV1.AssertEqual(note, result);
        }
Exemplo n.º 2
0
 public async Task <NoteV1> GetNoteByIdAsync(string correlationId, string id)
 {
     return(await SafeInvokeAsync(correlationId, "GetNoteByIdAsync",
                                  () => _persistence.GetNoteByIdAsync(correlationId, id)));
 }