using System.Threading.Tasks;
using Xunit;
namespace Yavsc.Org.Tests.Smoke;
///
/// Smoke for the Blog BC. Hits Yavsc.Org on
/// GET /BlogSpot/Index — the front-end page that lists blog
/// posts. The controller is BlogSpotController (note the
/// capital S) under Yavsc.Org/Controllers/Communicating/,
/// without a class-level [Route], so the conventional
/// /{controller}/{action} route applies (controller name
/// preserved case).
///
/// The blog backend API itself lives in Yavsc.Blogs on a
/// separate host in production; cf.
/// doc/architecture/decoupage-organisation.md. The smoke
/// here asserts the front-end side of the BC.
///
public class BlogSmokeTests : SmokeTestBase, IClassFixture
{
private readonly TestWebApplicationFactory _factory;
public BlogSmokeTests(TestWebApplicationFactory factory)
{
_factory = factory;
}
[Fact]
public async Task GetBlogSpotIndex_returns_a_page()
{
using var client = _factory.CreateClient();
await AssertResponds(client, "/BlogSpot/Index");
}
}