public async Task ReturnsNullIfNotFound() { var authorName = Guid.NewGuid().ToString().Replace("-", string.Empty); var actualAuthorId = await AuthorsEndpoint.GetAuthorIdByName(authorName); Assert.Null(actualAuthorId); }
public async Task ReturnsAnAuthorId() { var authorName = "Brandon Sanderson"; var expectedAuthorId = 38550; var actualAuthorId = await AuthorsEndpoint.GetAuthorIdByName(authorName); Assert.NotNull(actualAuthorId); Assert.Equal(actualAuthorId, expectedAuthorId); }