-
-
Notifications
You must be signed in to change notification settings - Fork 288
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: Move usings to global file
- Loading branch information
1 parent
db16f85
commit dfbaef6
Showing
40 changed files
with
102 additions
and
182 deletions.
There are no files selected for viewing
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
8 changes: 8 additions & 0 deletions
8
examples/WeatherForecast/src/WeatherForecast.Contexts/Usings.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 @@ | ||
global using System; | ||
global using System.Collections.Generic; | ||
global using System.Linq; | ||
global using System.Threading.Tasks; | ||
global using JetBrains.Annotations; | ||
global using Microsoft.EntityFrameworkCore; | ||
global using WeatherForecast.Entities; | ||
global using WeatherForecast.Repositories; |
6 changes: 0 additions & 6 deletions
6
examples/WeatherForecast/src/WeatherForecast.Contexts/WeatherDataContext.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
9 changes: 0 additions & 9 deletions
9
examples/WeatherForecast/src/WeatherForecast.Contexts/WeatherDataReadOnlyContext.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: 0 additions & 6 deletions
6
examples/WeatherForecast/src/WeatherForecast.Contexts/WeatherDataWriteOnlyContext.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
5 changes: 0 additions & 5 deletions
5
examples/WeatherForecast/src/WeatherForecast.Entities/HasId.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
4 changes: 0 additions & 4 deletions
4
examples/WeatherForecast/src/WeatherForecast.Entities/Temperature.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
examples/WeatherForecast/src/WeatherForecast.Entities/Usings.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 @@ | ||
global using System; | ||
global using System.Collections.Generic; | ||
global using System.ComponentModel.DataAnnotations; | ||
global using System.Linq; | ||
global using System.Text.Json.Serialization; | ||
global using JetBrains.Annotations; |
6 changes: 0 additions & 6 deletions
6
examples/WeatherForecast/src/WeatherForecast.Entities/WeatherData.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: 0 additions & 2 deletions
2
examples/WeatherForecast/src/WeatherForecast.Interactors/Error.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 |
---|---|---|
@@ -1,5 +1,3 @@ | ||
using JetBrains.Annotations; | ||
|
||
namespace WeatherForecast.Interactors; | ||
|
||
[PublicAPI] | ||
|
2 changes: 0 additions & 2 deletions
2
examples/WeatherForecast/src/WeatherForecast.Interactors/Failure.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 |
---|---|---|
@@ -1,5 +1,3 @@ | ||
using JetBrains.Annotations; | ||
|
||
namespace WeatherForecast.Interactors; | ||
|
||
[PublicAPI] | ||
|
2 changes: 0 additions & 2 deletions
2
examples/WeatherForecast/src/WeatherForecast.Interactors/Failure`1.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 |
---|---|---|
@@ -1,5 +1,3 @@ | ||
using JetBrains.Annotations; | ||
|
||
namespace WeatherForecast.Interactors; | ||
|
||
[PublicAPI] | ||
|
3 changes: 0 additions & 3 deletions
3
examples/WeatherForecast/src/WeatherForecast.Interactors/ICommand.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 |
---|---|---|
@@ -1,6 +1,3 @@ | ||
using System.Threading.Tasks; | ||
using JetBrains.Annotations; | ||
|
||
namespace WeatherForecast.Interactors; | ||
|
||
[PublicAPI] | ||
|
3 changes: 0 additions & 3 deletions
3
examples/WeatherForecast/src/WeatherForecast.Interactors/INotifyInteractorResult.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 |
---|---|---|
@@ -1,6 +1,3 @@ | ||
using System; | ||
using JetBrains.Annotations; | ||
|
||
namespace WeatherForecast.Interactors; | ||
|
||
[PublicAPI] | ||
|
2 changes: 0 additions & 2 deletions
2
examples/WeatherForecast/src/WeatherForecast.Interactors/ResultInfo.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 |
---|---|---|
@@ -1,5 +1,3 @@ | ||
using JetBrains.Annotations; | ||
|
||
namespace WeatherForecast.Interactors; | ||
|
||
[PublicAPI] | ||
|
2 changes: 0 additions & 2 deletions
2
examples/WeatherForecast/src/WeatherForecast.Interactors/ResultInfo`1.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 |
---|---|---|
@@ -1,5 +1,3 @@ | ||
using JetBrains.Annotations; | ||
|
||
namespace WeatherForecast.Interactors; | ||
|
||
[PublicAPI] | ||
|
4 changes: 0 additions & 4 deletions
4
...atherForecast/src/WeatherForecast.Interactors/SearchCityOrZipCode/ISearchCityOrZipCode.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
7 changes: 0 additions & 7 deletions
7
...eatherForecast/src/WeatherForecast.Interactors/SearchCityOrZipCode/SearchCityOrZipCode.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: 0 additions & 2 deletions
2
examples/WeatherForecast/src/WeatherForecast.Interactors/StatusCode.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 |
---|---|---|
@@ -1,5 +1,3 @@ | ||
using JetBrains.Annotations; | ||
|
||
namespace WeatherForecast.Interactors; | ||
|
||
[PublicAPI] | ||
|
2 changes: 0 additions & 2 deletions
2
examples/WeatherForecast/src/WeatherForecast.Interactors/Success.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 |
---|---|---|
@@ -1,5 +1,3 @@ | ||
using JetBrains.Annotations; | ||
|
||
namespace WeatherForecast.Interactors; | ||
|
||
[PublicAPI] | ||
|
2 changes: 0 additions & 2 deletions
2
examples/WeatherForecast/src/WeatherForecast.Interactors/Success`1.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 |
---|---|---|
@@ -1,5 +1,3 @@ | ||
using JetBrains.Annotations; | ||
|
||
namespace WeatherForecast.Interactors; | ||
|
||
[PublicAPI] | ||
|
6 changes: 6 additions & 0 deletions
6
examples/WeatherForecast/src/WeatherForecast.Interactors/Usings.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 @@ | ||
global using System; | ||
global using System.Collections.Generic; | ||
global using System.Threading.Tasks; | ||
global using JetBrains.Annotations; | ||
global using WeatherForecast.Entities; | ||
global using WeatherForecast.Repositories; |
6 changes: 0 additions & 6 deletions
6
examples/WeatherForecast/src/WeatherForecast.Repositories/IWeatherDataReadOnlyRepository.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
4 changes: 0 additions & 4 deletions
4
examples/WeatherForecast/src/WeatherForecast.Repositories/IWeatherDataWriteOnlyRepository.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
7 changes: 7 additions & 0 deletions
7
examples/WeatherForecast/src/WeatherForecast.Repositories/Usings.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 @@ | ||
global using System; | ||
global using System.Collections.Generic; | ||
global using System.Linq; | ||
global using System.Threading; | ||
global using System.Threading.Tasks; | ||
global using JetBrains.Annotations; | ||
global using WeatherForecast.Entities; |
10 changes: 1 addition & 9 deletions
10
examples/WeatherForecast/src/WeatherForecast.Repositories/WeatherDataReadOnlyRepository.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
5 changes: 0 additions & 5 deletions
5
examples/WeatherForecast/src/WeatherForecast.Repositories/WeatherDataWriteOnlyRepository.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
9 changes: 0 additions & 9 deletions
9
examples/WeatherForecast/src/WeatherForecast/Controllers/WeatherForecastController.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
5 changes: 0 additions & 5 deletions
5
examples/WeatherForecast/src/WeatherForecast/DatabaseContainer.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
1 change: 0 additions & 1 deletion
1
examples/WeatherForecast/src/WeatherForecast/Pages/_Host.cshtml
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 |
---|---|---|
@@ -1,5 +1,4 @@ | ||
@page "/" | ||
@using WeatherForecast | ||
@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers | ||
|
||
@{ | ||
|
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,18 @@ | ||
global using System; | ||
global using System.Collections.Generic; | ||
global using System.Threading; | ||
global using System.Threading.Tasks; | ||
global using Microsoft.AspNetCore.Builder; | ||
global using Microsoft.AspNetCore.Mvc; | ||
global using Microsoft.EntityFrameworkCore; | ||
global using Microsoft.Extensions.Configuration; | ||
global using Microsoft.Extensions.DependencyInjection; | ||
global using Microsoft.Extensions.Hosting; | ||
global using Microsoft.Fast.Components.FluentUI; | ||
global using Testcontainers.SqlEdge; | ||
global using WeatherForecast; | ||
global using WeatherForecast.Contexts; | ||
global using WeatherForecast.Entities; | ||
global using WeatherForecast.Interactors; | ||
global using WeatherForecast.Interactors.SearchCityOrZipCode; | ||
global using WeatherForecast.Repositories; |
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
14 changes: 14 additions & 0 deletions
14
examples/WeatherForecast/tests/WeatherForecast.InProcess.Tests/Usings.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,14 @@ | ||
global using System; | ||
global using System.Collections.Generic; | ||
global using System.Linq; | ||
global using System.Net; | ||
global using System.Net.Http; | ||
global using System.Text.Json; | ||
global using System.Threading.Tasks; | ||
global using JetBrains.Annotations; | ||
global using Microsoft.AspNetCore.Mvc.Testing; | ||
global using Microsoft.Extensions.DependencyInjection; | ||
global using Testcontainers.SqlEdge; | ||
global using WeatherForecast.Entities; | ||
global using WeatherForecast.Repositories; | ||
global using Xunit; |
15 changes: 0 additions & 15 deletions
15
examples/WeatherForecast/tests/WeatherForecast.InProcess.Tests/WeatherForecastTest.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.