コード例 #1
0
            public async Task ReturnsNullIfNotFound()
            {
                var authorId = -1;
                var author   = await AuthorsEndpoint.GetByAuthorId(authorId);

                Assert.Null(author);
            }
コード例 #2
0
            public async Task ReturnsAnAuthor()
            {
                var authorId = 38550;
                var author   = await AuthorsEndpoint.GetByAuthorId(authorId);

                Assert.NotNull(author);
                Assert.Equal(author.Id, authorId);
            }