Skip to content

Commit 948cba8

Browse files
committed
Removed licensing validation with a quick and dirty solution
1 parent ab16a0f commit 948cba8

File tree

8 files changed

+911
-913
lines changed

8 files changed

+911
-913
lines changed

src/MyTested.AspNetCore.Mvc.Abstractions/Builders/Base/BaseTestBuilder.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
{
33
using Contracts.Base;
44
using Internal.TestContexts;
5-
using Licensing;
5+
// using Licensing;
66
using Microsoft.AspNetCore.Http;
77
using Utilities.Validators;
88

@@ -19,7 +19,7 @@ public abstract class BaseTestBuilder : IBaseTestBuilder
1919
/// <param name="testContext"><see cref="HttpTestContext"/> containing data about the currently executed assertion chain.</param>
2020
protected BaseTestBuilder(HttpTestContext testContext)
2121
{
22-
TestCounter.IncrementAndValidate();
22+
// TestCounter.IncrementAndValidate();
2323
this.TestContext = testContext;
2424
}
2525

src/MyTested.AspNetCore.Mvc.Abstractions/Internal/Application/TestApplication.cs

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
namespace MyTested.AspNetCore.Mvc.Internal.Application
22
{
33
using System;
4-
using System.Globalization;
54
using Configuration;
6-
using Licensing;
5+
// using Licensing;
76
using Microsoft.AspNetCore.Builder;
87
using Server;
98
using Services;
@@ -67,11 +66,11 @@ private static void Initialize()
6766

6867
ValidateStartup();
6968

70-
TestCounter.SetLicenseData(
71-
ServerTestConfiguration.Global.Licenses,
72-
DateTime.UtcNow,
73-
DateTime.ParseExact(TestFramework.ReleaseDate, "yyyy-MM-dd", CultureInfo.InvariantCulture),
74-
TestWebServer.TestAssemblyName);
69+
//TestCounter.SetLicenseData(
70+
// ServerTestConfiguration.Global.Licenses,
71+
// DateTime.UtcNow,
72+
// DateTime.ParseExact(TestFramework.ReleaseDate, "yyyy-MM-dd", CultureInfo.InvariantCulture),
73+
// TestWebServer.TestAssemblyName);
7574

7675
PluginsContainer.LoadPlugins(TestWebServer.GetDependencyContext());
7776

@@ -112,7 +111,7 @@ private static void Reset()
112111
AdditionalRouting = null;
113112
TestServiceProvider.Current = null;
114113
TestServiceProvider.ClearServiceLifetimes();
115-
LicenseValidator.ClearLicenseDetails();
114+
// LicenseValidator.ClearLicenseDetails();
116115
PluginsContainer.Reset();
117116
}
118117
}

src/MyTested.AspNetCore.Mvc.Abstractions/Internal/PluginsContainer.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
using System.Collections.Generic;
55
using System.Linq;
66
using System.Reflection;
7-
using Licensing;
7+
// using Licensing;
88
using Microsoft.DotNet.PlatformAbstractions;
99
using Microsoft.Extensions.DependencyModel;
1010
using Plugins;
@@ -37,10 +37,10 @@ public static void LoadPlugins(DependencyContext dependencyContext)
3737
.Where(l => l.Name.StartsWith(testFrameworkName))
3838
.ToArray();
3939

40-
if (testFrameworkAssemblies.Length == 7 && testFrameworkAssemblies.Any(t => t.Name == $"{testFrameworkName}.Lite"))
41-
{
42-
TestCounter.SkipValidation = true;
43-
}
40+
//if (testFrameworkAssemblies.Length == 7 && testFrameworkAssemblies.Any(t => t.Name == $"{testFrameworkName}.Lite"))
41+
//{
42+
// TestCounter.SkipValidation = true;
43+
//}
4444

4545
var plugins = testFrameworkAssemblies
4646
.Select(l => Assembly

src/MyTested.AspNetCore.Mvc.Abstractions/MyTested.AspNetCore.Mvc.Abstractions.csproj

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@
3030

3131
<ItemGroup>
3232
<ProjectReference Include="..\MyTested.AspNetCore.Mvc.Configuration\MyTested.AspNetCore.Mvc.Configuration.csproj" />
33-
<ProjectReference Include="..\MyTested.AspNetCore.Mvc.Licensing\MyTested.AspNetCore.Mvc.Licensing.csproj" />
3433
</ItemGroup>
3534

3635
<ItemGroup>

0 commit comments

Comments
 (0)