chore: cleanup usings and run dotnet format
This commit is contained in:
@@ -32,7 +32,7 @@ public class BlogTest : PageTest
|
||||
{
|
||||
await Context.Tracing.StopAsync(new()
|
||||
{
|
||||
Path = Path.Combine(
|
||||
Path = Path.Combine(
|
||||
TestContext.CurrentContext.WorkDirectory,
|
||||
"playwright-traces",
|
||||
$"{TestContext.CurrentContext.Test.ClassName}.{TestContext.CurrentContext.Test.Name}.zip"
|
||||
|
||||
@@ -6,20 +6,20 @@ public class CompositeHost(IHost testHost, IHost kestrelHost) : IHost
|
||||
private readonly IHost _kestrelHost = kestrelHost;
|
||||
|
||||
public IServiceProvider Services => _testHost.Services;
|
||||
|
||||
|
||||
public void Dispose()
|
||||
{
|
||||
_testHost.Dispose();
|
||||
_kestrelHost.Dispose();
|
||||
GC.SuppressFinalize(this);
|
||||
}
|
||||
|
||||
|
||||
public async Task StartAsync(CancellationToken cancellationToken = default)
|
||||
{
|
||||
await _testHost.StartAsync(cancellationToken);
|
||||
await _kestrelHost.StartAsync(cancellationToken);
|
||||
}
|
||||
|
||||
|
||||
public async Task StopAsync(CancellationToken cancellationToken = default)
|
||||
{
|
||||
await _testHost.StopAsync(cancellationToken);
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
namespace Blog.Tests.EndToEnd;
|
||||
|
||||
[TestFixture]
|
||||
public class PostTests : BlogTest
|
||||
public class PostTests : BlogTest
|
||||
{
|
||||
private const string TestPostSlug = "test-blog";
|
||||
private const string TestPostTitle = "Test Blog";
|
||||
|
||||
@@ -1,8 +1,3 @@
|
||||
using System.ServiceModel.Syndication;
|
||||
using System.Text;
|
||||
using System.Xml;
|
||||
using System.Xml.Linq;
|
||||
|
||||
namespace Blog.Tests.EndToEnd;
|
||||
|
||||
[TestFixture]
|
||||
@@ -15,9 +10,9 @@ public class RssTests : BlogTest
|
||||
response.Status.Should().Be((int)HttpStatusCode.OK);
|
||||
|
||||
var xml = await response.BodyAsync();
|
||||
|
||||
|
||||
var streamReader = new StreamReader(
|
||||
new MemoryStream(xml),
|
||||
new MemoryStream(xml),
|
||||
Encoding.UTF8
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user