using F2.Testing;
using Xunit;
namespace F2.Testing.Tests
{
/// <summary>
/// Basic configuration
/// </summary>
public class DemoTests : IClassFixture<ServerFixture<Startup>>
{
private readonly ServerFixture<Startup> _testFixure;
private readonly WeatherForecastController _controller;
public DemoTests(ServerFixture<Startup> testFixture)
{
_testFixure = testFixture;
_controller = _testFixure.GetService<WeatherForecastController>();
}
[Fact]
public async Task IsGetWorking()
{
var results = await _testFixure.GetAsync<IEnumerable<WeatherForecast>>("WeatherForecast");
Assert.NotEmpty(results);
}
}
}-
Notifications
You must be signed in to change notification settings - Fork 0
TheTrigger/F2.Testing
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
About
ASP.NET Core test helper