Fix Null Warnings (#874)
* Fixing null warnings * Fix null warnings Fix other compiler warnings
This commit is contained in:
@@ -2,26 +2,25 @@
|
||||
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
||||
using System.Net.Http;
|
||||
|
||||
namespace PublicApiIntegrationTests
|
||||
namespace PublicApiIntegrationTests;
|
||||
|
||||
[TestClass]
|
||||
public class ProgramTest
|
||||
{
|
||||
[TestClass]
|
||||
public class ProgramTest
|
||||
private static WebApplicationFactory<Program> _application = new();
|
||||
|
||||
public static HttpClient NewClient
|
||||
{
|
||||
private static WebApplicationFactory<Program> _application;
|
||||
|
||||
public static HttpClient NewClient
|
||||
get
|
||||
{
|
||||
get
|
||||
{
|
||||
return _application.CreateClient();
|
||||
}
|
||||
}
|
||||
|
||||
[AssemblyInitialize]
|
||||
public static void AssemblyInitialize(TestContext _)
|
||||
{
|
||||
_application = new WebApplicationFactory<Program>();
|
||||
|
||||
return _application.CreateClient();
|
||||
}
|
||||
}
|
||||
|
||||
[AssemblyInitialize]
|
||||
public static void AssemblyInitialize(TestContext _)
|
||||
{
|
||||
_application = new WebApplicationFactory<Program>();
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user