December 2019
Intermediate to advanced
510 pages
11h 33m
English
Once we expose the API routes through the ArtistController and GenreController classes, we are able to proceed by testing the revealed paths using the same approach that we used for ItemController. We should continue by creating a new ArtistControllerTests class in the Catalog.API.Tests project:
using System.Collections.Generic;...namespace Catalog.API.Tests.Controllers{ public class ArtistControllerTests : IClassFixture<InMemoryApplicationFactory<Startup>> { public ArtistControllerTests(InMemoryApplicationFactory<Startup> factory) { _factory = factory; } private readonly InMemoryApplicationFactory<Startup> _factory; [Theory] [InlineData("/api/artist/")] public async Task smoke_test_on_items(string ...Read now
Unlock full access