Skip to content

Commit a9d65f6

Browse files
committed
Pulled sample from main solution into own solution
1 parent 9d50e6f commit a9d65f6

11 files changed

Lines changed: 45 additions & 23 deletions

Razor.Components.Testing.Library.sln

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,7 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Egil.RazorComponents.Testin
1919
EndProject
2020
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Egil.RazorComponents.Testing.Library.Tests", "tests\Egil.RazorComponents.Testing.Library.Tests.csproj", "{04E0142A-33CC-4E30-B903-F1370D94AD8C}"
2121
EndProject
22-
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "sample", "sample", "{26D90CB9-AF66-4F42-A16E-39D2CF69C8FB}"
23-
EndProject
24-
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Egil.RazorComponents.Testing.Library.SampleApp", "sample\src\Egil.RazorComponents.Testing.Library.SampleApp.csproj", "{D1FE0F2A-D856-417E-A1FD-4ECE9C64D3AE}"
25-
EndProject
26-
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Egil.RazorComponents.Testing.Library.SampleApp.Tests", "sample\tests\Egil.RazorComponents.Testing.Library.SampleApp.Tests.csproj", "{A7B05744-AA61-4F8E-8173-5DE812A4A745}"
27-
EndProject
28-
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Razor.Components.Testing.Library.Template", "template\Razor.Components.Testing.Library.Template.csproj", "{FB46378D-BFB8-4C72-9CA3-0407D4665218}"
22+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Egil.Razor.Components.Testing.Library.Template", "template\Egil.Razor.Components.Testing.Library.Template.csproj", "{FB46378D-BFB8-4C72-9CA3-0407D4665218}"
2923
EndProject
3024
Global
3125
GlobalSection(SolutionConfigurationPlatforms) = preSolution
@@ -41,14 +35,6 @@ Global
4135
{04E0142A-33CC-4E30-B903-F1370D94AD8C}.Debug|Any CPU.Build.0 = Debug|Any CPU
4236
{04E0142A-33CC-4E30-B903-F1370D94AD8C}.Release|Any CPU.ActiveCfg = Release|Any CPU
4337
{04E0142A-33CC-4E30-B903-F1370D94AD8C}.Release|Any CPU.Build.0 = Release|Any CPU
44-
{D1FE0F2A-D856-417E-A1FD-4ECE9C64D3AE}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
45-
{D1FE0F2A-D856-417E-A1FD-4ECE9C64D3AE}.Debug|Any CPU.Build.0 = Debug|Any CPU
46-
{D1FE0F2A-D856-417E-A1FD-4ECE9C64D3AE}.Release|Any CPU.ActiveCfg = Release|Any CPU
47-
{D1FE0F2A-D856-417E-A1FD-4ECE9C64D3AE}.Release|Any CPU.Build.0 = Release|Any CPU
48-
{A7B05744-AA61-4F8E-8173-5DE812A4A745}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
49-
{A7B05744-AA61-4F8E-8173-5DE812A4A745}.Debug|Any CPU.Build.0 = Debug|Any CPU
50-
{A7B05744-AA61-4F8E-8173-5DE812A4A745}.Release|Any CPU.ActiveCfg = Release|Any CPU
51-
{A7B05744-AA61-4F8E-8173-5DE812A4A745}.Release|Any CPU.Build.0 = Release|Any CPU
5238
{FB46378D-BFB8-4C72-9CA3-0407D4665218}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
5339
{FB46378D-BFB8-4C72-9CA3-0407D4665218}.Debug|Any CPU.Build.0 = Debug|Any CPU
5440
{FB46378D-BFB8-4C72-9CA3-0407D4665218}.Release|Any CPU.ActiveCfg = Release|Any CPU
@@ -60,8 +46,6 @@ Global
6046
GlobalSection(NestedProjects) = preSolution
6147
{AA96790B-67C9-4141-ACDB-037C8DC092EC} = {E006E9A4-F554-46DF-838F-812956521F64}
6248
{04E0142A-33CC-4E30-B903-F1370D94AD8C} = {C929375E-BD70-4B78-88C1-BDD1623C3365}
63-
{D1FE0F2A-D856-417E-A1FD-4ECE9C64D3AE} = {26D90CB9-AF66-4F42-A16E-39D2CF69C8FB}
64-
{A7B05744-AA61-4F8E-8173-5DE812A4A745} = {26D90CB9-AF66-4F42-A16E-39D2CF69C8FB}
6549
{FB46378D-BFB8-4C72-9CA3-0407D4665218} = {E006E9A4-F554-46DF-838F-812956521F64}
6650
EndGlobalSection
6751
GlobalSection(ExtensibilityGlobals) = postSolution

sample/SampleApp.sln

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
2+
Microsoft Visual Studio Solution File, Format Version 12.00
3+
# Visual Studio Version 16
4+
VisualStudioVersion = 16.0.29613.14
5+
MinimumVisualStudioVersion = 10.0.40219.1
6+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "SampleApp", "src\SampleApp.csproj", "{0C4F7AE0-EA8A-4ECC-9003-1CEE4412BBA7}"
7+
EndProject
8+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "SampleApp.Tests", "tests\SampleApp.Tests.csproj", "{04F6D258-F69C-4BB5-87C5-3813C3CE33D8}"
9+
EndProject
10+
Global
11+
GlobalSection(SolutionConfigurationPlatforms) = preSolution
12+
Debug|Any CPU = Debug|Any CPU
13+
Release|Any CPU = Release|Any CPU
14+
EndGlobalSection
15+
GlobalSection(ProjectConfigurationPlatforms) = postSolution
16+
{0C4F7AE0-EA8A-4ECC-9003-1CEE4412BBA7}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
17+
{0C4F7AE0-EA8A-4ECC-9003-1CEE4412BBA7}.Debug|Any CPU.Build.0 = Debug|Any CPU
18+
{0C4F7AE0-EA8A-4ECC-9003-1CEE4412BBA7}.Release|Any CPU.ActiveCfg = Release|Any CPU
19+
{0C4F7AE0-EA8A-4ECC-9003-1CEE4412BBA7}.Release|Any CPU.Build.0 = Release|Any CPU
20+
{04F6D258-F69C-4BB5-87C5-3813C3CE33D8}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
21+
{04F6D258-F69C-4BB5-87C5-3813C3CE33D8}.Debug|Any CPU.Build.0 = Debug|Any CPU
22+
{04F6D258-F69C-4BB5-87C5-3813C3CE33D8}.Release|Any CPU.ActiveCfg = Release|Any CPU
23+
{04F6D258-F69C-4BB5-87C5-3813C3CE33D8}.Release|Any CPU.Build.0 = Release|Any CPU
24+
EndGlobalSection
25+
GlobalSection(SolutionProperties) = preSolution
26+
HideSolutionNode = FALSE
27+
EndGlobalSection
28+
GlobalSection(ExtensibilityGlobals) = postSolution
29+
SolutionGuid = {FBE5B0F6-5496-4BC5-BB38-CF16799DCF93}
30+
EndGlobalSection
31+
EndGlobal

sample/src/Egil.RazorComponents.Testing.Library.SampleApp.csproj renamed to sample/src/SampleApp.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
<PropertyGroup>
44
<TargetFramework>netcoreapp3.1</TargetFramework>
5+
<IsPackable>false</IsPackable>
56
<RootNamespace>Egil.RazorComponents.Testing.SampleApp</RootNamespace>
67
</PropertyGroup>
78

sample/tests/MockForecastService.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@
44

55
namespace Egil.RazorComponents.Testing.SampleApp
66
{
7-
internal class MockForecastService : IWeatherForecastService
8-
{
9-
public TaskCompletionSource<WeatherForecast[]> Task { get; } = new TaskCompletionSource<WeatherForecast[]>();
7+
internal class MockForecastService : IWeatherForecastService
8+
{
9+
public TaskCompletionSource<WeatherForecast[]> Task { get; } = new TaskCompletionSource<WeatherForecast[]>();
1010

11-
public Task<WeatherForecast[]> GetForecastAsync(DateTime startDate) => Task.Task;
12-
}
11+
public Task<WeatherForecast[]> GetForecastAsync(DateTime startDate) => Task.Task;
12+
}
1313
}

sample/tests/Egil.RazorComponents.Testing.Library.SampleApp.Tests.csproj renamed to sample/tests/SampleApp.Tests.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
<ItemGroup>
2222
<ProjectReference Include="..\..\src\Egil.RazorComponents.Testing.Library.csproj" />
23-
<ProjectReference Include="..\src\Egil.RazorComponents.Testing.Library.SampleApp.csproj" />
23+
<ProjectReference Include="..\src\SampleApp.csproj" />
2424
</ItemGroup>
2525

2626
</Project>

sample/tests/Tests/Components/AlertTest.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
using System.Threading.Tasks;
33
using Egil.RazorComponents.Testing.Asserting;
44
using Egil.RazorComponents.Testing.EventDispatchExtensions;
5+
using Egil.RazorComponents.Testing.Mocking.JSInterop;
56
using Egil.RazorComponents.Testing.SampleApp.Components;
67
using Egil.RazorComponents.Testing.SampleApp.Data;
78
using Microsoft.AspNetCore.Authentication;

sample/tests/Tests/Components/FocussingInputTest.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
using System.Threading.Tasks;
66
using Egil.RazorComponents.Testing.Asserting;
77
using Egil.RazorComponents.Testing.SampleApp.Components;
8+
using Egil.RazorComponents.Testing.Mocking.JSInterop;
89
using Xunit;
910

1011
namespace Egil.RazorComponents.Testing.SampleApp.CodeOnlyTests.Components

sample/tests/Tests/Components/TodoListTest.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
using AngleSharp.Dom;
33
using Egil.RazorComponents.Testing.Asserting;
44
using Egil.RazorComponents.Testing.EventDispatchExtensions;
5+
using Egil.RazorComponents.Testing.Mocking.JSInterop;
56
using Egil.RazorComponents.Testing.SampleApp.Components;
67
using Egil.RazorComponents.Testing.SampleApp.Data;
78
using Microsoft.AspNetCore.Components;

sample/tests/Tests/Components/WikiSearchTest.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
using System.Threading.Tasks;
66
using Egil.RazorComponents.Testing.Asserting;
77
using Egil.RazorComponents.Testing.SampleApp.Components;
8+
using Egil.RazorComponents.Testing.Mocking.JSInterop;
89
using Shouldly;
910
using Xunit;
1011

sample/tests/_Imports.razor

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,14 @@
22

33
@using Egil.RazorComponents.Testing
44
@using Egil.RazorComponents.Testing.EventDispatchExtensions
5+
@using Egil.RazorComponents.Testing.Mocking.JSInterop
56
@using Egil.RazorComponents.Testing.Asserting
67

78
@using Egil.RazorComponents.Testing.SampleApp
89
@using Egil.RazorComponents.Testing.SampleApp.Data
910
@using Egil.RazorComponents.Testing.SampleApp.Components
1011
@using Egil.RazorComponents.Testing.SampleApp.Pages
1112

13+
1214
@using Xunit
1315
@using Shouldly

0 commit comments

Comments
 (0)