refactoring
This commit is contained in:
commit
5c6d6ee687
73 changed files with 645 additions and 48758 deletions
|
|
@ -1,4 +1,4 @@
|
|||
using System.Net.Http;
|
||||
using yavscTests.ServerFixtures;
|
||||
|
||||
namespace Yavsc.Tests
|
||||
{
|
||||
|
|
|
|||
|
|
@ -3,11 +3,11 @@ using OpenQA.Selenium;
|
|||
using OpenQA.Selenium.Chrome;
|
||||
using OpenQA.Selenium.Firefox;
|
||||
using Xunit.Abstractions;
|
||||
using Yavsc.Tests;
|
||||
|
||||
namespace yavscTests.ServerFixtures;
|
||||
|
||||
|
||||
|
||||
[Collection("Yavsc Server")]
|
||||
|
||||
public class FirstScript : BaseTestContext
|
||||
|
|
@ -22,6 +22,21 @@ public class FirstScript : BaseTestContext
|
|||
this._output = output;
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void DoTestSeleniumWebSite()
|
||||
{
|
||||
var firefoxOptions = new FirefoxOptions();
|
||||
firefoxOptions.AcceptInsecureCertificates = true;
|
||||
|
||||
var driver = new FirefoxDriver(firefoxOptions);
|
||||
|
||||
driver.Navigate()
|
||||
.GoToUrl(_serverFixture.Addresses.FirstOrDefault(u => u.StartsWith("http:")));
|
||||
|
||||
driver.Quit();
|
||||
}
|
||||
|
||||
|
||||
|
||||
// FIXME [Fact]
|
||||
public async Task DoTestYavscSite()
|
||||
|
|
|
|||
|
|
@ -4,7 +4,8 @@ using Yavsc.Models;
|
|||
using Xunit.Abstractions;
|
||||
using Yavsc.Server.Models.IT.SourceCode;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using Yavsc.Tests;
|
||||
|
||||
using yavscTests.ServerFixtures;
|
||||
using Yavsc.Server.Models.IT;
|
||||
|
||||
namespace yavscTests
|
||||
|
|
|
|||
|
|
@ -1,6 +1,8 @@
|
|||
using System.Security.Cryptography.X509Certificates;
|
||||
using System.Net.Security;
|
||||
using Yavsc.Tests;
|
||||
|
||||
using yavscTests.ServerFixtures;
|
||||
|
||||
using Xunit.Abstractions;
|
||||
using IdentityModel.Client;
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,6 @@
|
|||
using Yavsc.Tests;
|
||||
|
||||
using yavscTests.ServerFixtures;
|
||||
|
||||
using Xunit.Abstractions;
|
||||
|
||||
namespace yavscTests.Mandatory;
|
||||
|
|
|
|||
|
|
@ -1,4 +1,6 @@
|
|||
using Yavsc.Tests;
|
||||
|
||||
using yavscTests.ServerFixtures;
|
||||
|
||||
using Xunit.Abstractions;
|
||||
|
||||
namespace yavscTests.Mandatory
|
||||
|
|
|
|||
|
|
@ -1,4 +1,6 @@
|
|||
using Yavsc.Tests;
|
||||
|
||||
using yavscTests.ServerFixtures;
|
||||
|
||||
using Microsoft.Extensions.DependencyInjection;
|
||||
using Microsoft.Extensions.Logging;
|
||||
using Xunit.Abstractions;
|
||||
|
|
|
|||
|
|
@ -14,12 +14,15 @@ using Microsoft.Extensions.Options;
|
|||
using System.Net;
|
||||
using System.Security.Cryptography;
|
||||
using System.Security.Cryptography.X509Certificates;
|
||||
using Yavsc;
|
||||
using Yavsc.Extensions;
|
||||
using Yavsc.Models;
|
||||
using Yavsc.Server.Helpers;
|
||||
using Client = IdentityServer8.EntityFramework.Entities.Client;
|
||||
|
||||
namespace Yavsc.Tests
|
||||
|
||||
namespace yavscTests.ServerFixtures
|
||||
|
||||
{
|
||||
|
||||
[CollectionDefinition("Yavsc Server")]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue