Compare commits
8 Commits
8a56e20b4c
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| a1161d794d | |||
| 48ca53a6c3 | |||
| 34f405c61a | |||
| 3f1b164c81 | |||
| 697fa36e11 | |||
| a7d4720918 | |||
| 3dd056327d | |||
| 9bdfa8504a |
5
.editorconfig
Normal file
5
.editorconfig
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
root = true
|
||||||
|
|
||||||
|
[*]
|
||||||
|
end_of_line = lf
|
||||||
|
charset = utf-8-bom
|
||||||
3
.gitignore
vendored
Normal file
3
.gitignore
vendored
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
*/bin
|
||||||
|
*/obj
|
||||||
|
.vs
|
||||||
36
BrokerDog.sln
Normal file
36
BrokerDog.sln
Normal file
@@ -0,0 +1,36 @@
|
|||||||
|
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||||
|
# Visual Studio Version 17
|
||||||
|
VisualStudioVersion = 17.5.2.0
|
||||||
|
MinimumVisualStudioVersion = 10.0.40219.1
|
||||||
|
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "BrokerDogConsole", "BrokerDogConsole\BrokerDogConsole.csproj", "{32D007A5-E21C-C193-4BA2-5B8633FC6EDB}"
|
||||||
|
EndProject
|
||||||
|
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "BrokerDogLib", "BrokerDogLib\BrokerDogLib.csproj", "{54FD2CC5-E527-CE85-41E8-55EE07F0979B}"
|
||||||
|
EndProject
|
||||||
|
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "BrokerDogTest", "BrokerDogTest\BrokerDogTest.csproj", "{47734E39-FD90-02F6-ED8D-0DBECDC708DF}"
|
||||||
|
EndProject
|
||||||
|
Global
|
||||||
|
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||||
|
Debug|Any CPU = Debug|Any CPU
|
||||||
|
Release|Any CPU = Release|Any CPU
|
||||||
|
EndGlobalSection
|
||||||
|
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||||
|
{32D007A5-E21C-C193-4BA2-5B8633FC6EDB}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||||
|
{32D007A5-E21C-C193-4BA2-5B8633FC6EDB}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||||
|
{32D007A5-E21C-C193-4BA2-5B8633FC6EDB}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||||
|
{32D007A5-E21C-C193-4BA2-5B8633FC6EDB}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||||
|
{54FD2CC5-E527-CE85-41E8-55EE07F0979B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||||
|
{54FD2CC5-E527-CE85-41E8-55EE07F0979B}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||||
|
{54FD2CC5-E527-CE85-41E8-55EE07F0979B}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||||
|
{54FD2CC5-E527-CE85-41E8-55EE07F0979B}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||||
|
{47734E39-FD90-02F6-ED8D-0DBECDC708DF}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||||
|
{47734E39-FD90-02F6-ED8D-0DBECDC708DF}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||||
|
{47734E39-FD90-02F6-ED8D-0DBECDC708DF}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||||
|
{47734E39-FD90-02F6-ED8D-0DBECDC708DF}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||||
|
EndGlobalSection
|
||||||
|
GlobalSection(SolutionProperties) = preSolution
|
||||||
|
HideSolutionNode = FALSE
|
||||||
|
EndGlobalSection
|
||||||
|
GlobalSection(ExtensibilityGlobals) = postSolution
|
||||||
|
SolutionGuid = {DF6DC818-7B7C-4C69-A86B-978D2A715012}
|
||||||
|
EndGlobalSection
|
||||||
|
EndGlobal
|
||||||
18
BrokerDogConsole/BrokerDogConsole.csproj
Normal file
18
BrokerDogConsole/BrokerDogConsole.csproj
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
<Project Sdk="Microsoft.NET.Sdk.Web">
|
||||||
|
|
||||||
|
<PropertyGroup>
|
||||||
|
<OutputType>Exe</OutputType>
|
||||||
|
<TargetFramework>net9.0</TargetFramework>
|
||||||
|
<ImplicitUsings>enable</ImplicitUsings>
|
||||||
|
<Nullable>enable</Nullable>
|
||||||
|
</PropertyGroup>
|
||||||
|
|
||||||
|
<ItemGroup>
|
||||||
|
<ProjectReference Include="..\BrokerDogLib\BrokerDogLib.csproj" />
|
||||||
|
</ItemGroup>
|
||||||
|
|
||||||
|
<ItemGroup>
|
||||||
|
<PackageReference Include="Swashbuckle.AspNetCore" Version="9.0.4" />
|
||||||
|
</ItemGroup>
|
||||||
|
|
||||||
|
</Project>
|
||||||
12
BrokerDogConsole/Properties/launchSettings.json
Normal file
12
BrokerDogConsole/Properties/launchSettings.json
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
{
|
||||||
|
"profiles": {
|
||||||
|
"BrokerDogConsole": {
|
||||||
|
"commandName": "Project",
|
||||||
|
"launchBrowser": true,
|
||||||
|
"environmentVariables": {
|
||||||
|
"ASPNETCORE_ENVIRONMENT": "Development"
|
||||||
|
},
|
||||||
|
"applicationUrl": "https://localhost:57728;http://localhost:57729"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
20
BrokerDogConsole/main.cs
Normal file
20
BrokerDogConsole/main.cs
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
namespace BrokerDogConsole
|
||||||
|
{
|
||||||
|
public class Program
|
||||||
|
{
|
||||||
|
public static void Main(string[] args)
|
||||||
|
{
|
||||||
|
var builder = WebApplication.CreateBuilder(args);
|
||||||
|
builder.WebHost.UseUrls("http://localhost:80");
|
||||||
|
builder.Services.AddControllers();
|
||||||
|
builder.Services.AddEndpointsApiExplorer();
|
||||||
|
builder.Services.AddSwaggerGen();
|
||||||
|
|
||||||
|
var app = builder.Build();
|
||||||
|
app.UseSwagger();
|
||||||
|
app.UseSwaggerUI();
|
||||||
|
app.MapControllers();
|
||||||
|
app.Run();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
14
BrokerDogLib/BrokerDogLib.cs
Normal file
14
BrokerDogLib/BrokerDogLib.cs
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
namespace BrokerDogLib;
|
||||||
|
|
||||||
|
public static class BrokerDogLib
|
||||||
|
{
|
||||||
|
public static string SayHello()
|
||||||
|
{
|
||||||
|
return "Hello";
|
||||||
|
}
|
||||||
|
|
||||||
|
public static string SayWorld()
|
||||||
|
{
|
||||||
|
return "World";
|
||||||
|
}
|
||||||
|
}
|
||||||
9
BrokerDogLib/BrokerDogLib.csproj
Normal file
9
BrokerDogLib/BrokerDogLib.csproj
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
<Project Sdk="Microsoft.NET.Sdk">
|
||||||
|
|
||||||
|
<PropertyGroup>
|
||||||
|
<TargetFramework>net9.0</TargetFramework>
|
||||||
|
<ImplicitUsings>enable</ImplicitUsings>
|
||||||
|
<Nullable>enable</Nullable>
|
||||||
|
</PropertyGroup>
|
||||||
|
|
||||||
|
</Project>
|
||||||
11
BrokerDogTest/BrokerDogTest.cs
Normal file
11
BrokerDogTest/BrokerDogTest.cs
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
namespace BrokerDogTest;
|
||||||
|
|
||||||
|
[TestClass]
|
||||||
|
public sealed class BrokerDogTest
|
||||||
|
{
|
||||||
|
[TestMethod]
|
||||||
|
public void TestMethod()
|
||||||
|
{
|
||||||
|
Assert.IsTrue(true);
|
||||||
|
}
|
||||||
|
}
|
||||||
23
BrokerDogTest/BrokerDogTest.csproj
Normal file
23
BrokerDogTest/BrokerDogTest.csproj
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
<Project Sdk="Microsoft.NET.Sdk">
|
||||||
|
|
||||||
|
<PropertyGroup>
|
||||||
|
<TargetFramework>net9.0</TargetFramework>
|
||||||
|
<LangVersion>latest</LangVersion>
|
||||||
|
<ImplicitUsings>enable</ImplicitUsings>
|
||||||
|
<Nullable>enable</Nullable>
|
||||||
|
</PropertyGroup>
|
||||||
|
|
||||||
|
<ItemGroup>
|
||||||
|
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.12.0" />
|
||||||
|
<PackageReference Include="MSTest" Version="3.6.4" />
|
||||||
|
</ItemGroup>
|
||||||
|
|
||||||
|
<ItemGroup>
|
||||||
|
<ProjectReference Include="..\BrokerDogLib\BrokerDogLib.csproj" />
|
||||||
|
</ItemGroup>
|
||||||
|
|
||||||
|
<ItemGroup>
|
||||||
|
<Using Include="Microsoft.VisualStudio.TestTools.UnitTesting" />
|
||||||
|
</ItemGroup>
|
||||||
|
|
||||||
|
</Project>
|
||||||
1
BrokerDogTest/MSTestSettings.cs
Normal file
1
BrokerDogTest/MSTestSettings.cs
Normal file
@@ -0,0 +1 @@
|
|||||||
|
[assembly: Parallelize(Scope = ExecutionScope.MethodLevel)]
|
||||||
Reference in New Issue
Block a user