-
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[r] shared models made less shared, remvod unused parameters
[r] redundant async
- Loading branch information
Showing
55 changed files
with
204 additions
and
93 deletions.
There are no files selected for viewing
5 changes: 2 additions & 3 deletions
5
...s/Meta/ControllersMetaDataFactoryTests.cs → ....Tests/ControllersMetaDataFactoryTests.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
src/Simplify.Web.Meta.Tests/Simplify.Web.Meta.Tests.csproj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
<PropertyGroup> | ||
<TargetFramework>net8.0</TargetFramework> | ||
<Nullable>enable</Nullable> | ||
<WarningsAsErrors>nullable</WarningsAsErrors> | ||
|
||
<Authors>Alexander Krylkov</Authors> | ||
<Product>Simplify</Product> | ||
<Description>Simplify.Web meta unit tests</Description> | ||
<Copyright>Licensed under LGPL</Copyright> | ||
</PropertyGroup> | ||
<ItemGroup> | ||
<ProjectReference Include="..\Simplify.Web\Simplify.Web.csproj" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.8.*" /> | ||
<PackageReference Include="Moq" Version="4.20.*" /> | ||
<PackageReference Include="NUnit" Version="3.14.*" /> | ||
<PackageReference Include="NUnit3TestAdapter" Version="4.5.*" /> | ||
<PackageReference Include="Simplify.Xml" Version="1.3.*" /> | ||
</ItemGroup> | ||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
....Web.Tests/TestEntities/ControllerBase.cs → ...eb.Meta.Tests/TestTypes/ControllerBase.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...eb.Tests/TestEntities/TestBootstrapper.cs → ....Meta.Tests/TestTypes/TestBootstrapper.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...Web.Tests/TestEntities/TestController1.cs → ...b.Meta.Tests/TestTypes/TestController1.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
using System; | ||
using System.Threading.Tasks; | ||
|
||
namespace Simplify.Web.Meta.Tests.TestTypes; | ||
|
||
public class TestController2 : AsyncController | ||
{ | ||
public override Task<ControllerResponse?> Invoke() | ||
{ | ||
throw new NotImplementedException(); | ||
} | ||
} |
2 changes: 1 addition & 1 deletion
2
...Web.Tests/TestEntities/TestController3.cs → ...b.Meta.Tests/TestTypes/TestController3.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...Web.Tests/TestEntities/TestController4.cs → ...b.Meta.Tests/TestTypes/TestController4.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...Web.Tests/TestEntities/TestController5.cs → ...b.Meta.Tests/TestTypes/TestController5.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...Web.Tests/TestEntities/TestController6.cs → ...b.Meta.Tests/TestTypes/TestController6.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...eb.Tests/TestEntities/TestControllerV2.cs → ....Meta.Tests/TestTypes/TestControllerV2.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...TestEntities/TestControllerV2WithModel.cs → ...ts/TestTypes/TestControllerV2WithModel.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
namespace Simplify.Web.Meta.Tests.TestTypes; | ||
|
||
public class TestModel | ||
{ | ||
public string? Prop1 { get; set; } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 7 additions & 0 deletions
7
src/Simplify.Web.Tests/Bootstrapper/TestTypes/TestBootstrapper.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
using Simplify.Web.Bootstrapper; | ||
|
||
namespace Simplify.Web.Tests.Bootstrapper.TestTypes; | ||
|
||
public class TestBootstrapper : BaseBootstrapper | ||
{ | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 6 additions & 0 deletions
6
src/Simplify.Web.Tests/Core/Controllers/Execution/Controller1TestTypes/TestModel.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
namespace Simplify.Web.Tests.Core.Controllers.Execution.Controller1TestTypes; | ||
|
||
public class TestModel | ||
{ | ||
public string? Prop1 { get; set; } | ||
} |
8 changes: 8 additions & 0 deletions
8
src/Simplify.Web.Tests/Core/Controllers/TestTypes/TestController1.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
using System; | ||
|
||
namespace Simplify.Web.Tests.Core.Controllers.TestTypes; | ||
|
||
public class TestController1 : Controller | ||
{ | ||
public override ControllerResponse Invoke() => throw new NotImplementedException(); | ||
} |
12 changes: 12 additions & 0 deletions
12
src/Simplify.Web.Tests/Core/Controllers/TestTypes/TestController2.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
using System; | ||
using System.Threading.Tasks; | ||
|
||
namespace Simplify.Web.Tests.Core.Controllers.TestTypes; | ||
|
||
public class TestController2 : AsyncController | ||
{ | ||
public override Task<ControllerResponse?> Invoke() | ||
{ | ||
throw new NotImplementedException(); | ||
} | ||
} |
8 changes: 8 additions & 0 deletions
8
src/Simplify.Web.Tests/Core/Controllers/TestTypes/TestController4.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
using System; | ||
|
||
namespace Simplify.Web.Tests.Core.Controllers.TestTypes; | ||
|
||
public class TestController4 : Controller<TestModel> | ||
{ | ||
public override ControllerResponse Invoke() => throw new NotImplementedException(); | ||
} |
9 changes: 9 additions & 0 deletions
9
src/Simplify.Web.Tests/Core/Controllers/TestTypes/TestController5.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
using System; | ||
using System.Threading.Tasks; | ||
|
||
namespace Simplify.Web.Tests.Core.Controllers.TestTypes; | ||
|
||
public class TestController5 : AsyncController<TestModel> | ||
{ | ||
public override Task<ControllerResponse?> Invoke() => throw new NotImplementedException(); | ||
} |
6 changes: 6 additions & 0 deletions
6
src/Simplify.Web.Tests/Core/Controllers/TestTypes/TestModel.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
namespace Simplify.Web.Tests.Core.Controllers.TestTypes; | ||
|
||
public class TestModel | ||
{ | ||
public string? Prop1 { get; set; } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 9 additions & 0 deletions
9
src/Simplify.Web.Tests/Model/Binding/Parsers/ListToModelParserTestTypes/TestModel.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
using Simplify.Web.Model.Validation.Attributes; | ||
|
||
namespace Simplify.Web.Tests.Model.Binding.Parsers.ListToModelParserTestTypes; | ||
|
||
public class TestModel | ||
{ | ||
[Required] | ||
public string? Prop1 { get; set; } | ||
} |
2 changes: 1 addition & 1 deletion
2
...b.Tests/TestEntities/TestModelDateTime.cs → ...ModelParserTestTypes/TestModelDateTime.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 6 additions & 0 deletions
6
...plify.Web.Tests/Model/Binding/Parsers/ListToModelParserTestTypes/TestModelStringsArray.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
namespace Simplify.Web.Tests.Model.Binding.Parsers.ListToModelParserTestTypes; | ||
|
||
public class TestModelStringsArray | ||
{ | ||
public string[]? Prop1 { get; set; } | ||
} |
2 changes: 1 addition & 1 deletion
2
...ests/TestEntities/TestModelStringsList.cs → ...elParserTestTypes/TestModelStringsList.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...ts/TestEntities/TestModelUndefinedType.cs → ...ParserTestTypes/TestModelUndefinedType.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...TestEntities/TestModelWithBindProperty.cs → ...serTestTypes/TestModelWithBindProperty.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.