Moved tests with API requests to WebTests. Refactoring
This commit is contained in:
parent
e9245294a4
commit
c3f3cc6acb
3 changed files with 3 additions and 10 deletions
|
@ -1,5 +1,3 @@
|
||||||
using Microsoft.AspNetCore.Components;
|
|
||||||
using Microsoft.AspNetCore.Components.Web;
|
|
||||||
using Nyanlabs.Umogen.Server.Data;
|
using Nyanlabs.Umogen.Server.Data;
|
||||||
|
|
||||||
var builder = WebApplication.CreateBuilder(args);
|
var builder = WebApplication.CreateBuilder(args);
|
||||||
|
|
|
@ -1,11 +1,6 @@
|
||||||
using System;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Linq;
|
|
||||||
using System.Threading.Tasks;
|
|
||||||
|
|
||||||
using Nyanlabs.Umogen.Core;
|
using Nyanlabs.Umogen.Core;
|
||||||
|
|
||||||
namespace Nyanlabs.Umogen.CoreTests;
|
namespace Nyanlabs.Umogen.WebTests;
|
||||||
|
|
||||||
public class AuthTests
|
public class AuthTests
|
||||||
{
|
{
|
||||||
|
@ -13,7 +8,7 @@ public class AuthTests
|
||||||
public async Task TestTokenVerification()
|
public async Task TestTokenVerification()
|
||||||
{
|
{
|
||||||
// Given
|
// Given
|
||||||
var rootDir = Environment.CurrentDirectory.Replace("test/Nyanlabs.Umogen.CoreTests/bin/Debug/net8.0", "");
|
var rootDir = Environment.CurrentDirectory.Replace("test/Nyanlabs.Umogen.WebTests/bin/Debug/net8.0", "");
|
||||||
|
|
||||||
UmoEngine eng = new(Path.Combine(rootDir, Core.Umogen.DEFAULT_API_KEY_FILE));
|
UmoEngine eng = new(Path.Combine(rootDir, Core.Umogen.DEFAULT_API_KEY_FILE));
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
global using Xunit;
|
global using Xunit;
|
||||||
|
|
Loading…
Reference in a new issue