From 3e29bca4c384677cadb2885071d2332e3c58b3e8 Mon Sep 17 00:00:00 2001 From: Denis Prokhorchik Date: Sat, 26 Mar 2022 22:44:46 +0300 Subject: [PATCH 1/3] feat(issue-198): add service s-link --- src/Services/s-link/O2NextGen.SLink.Api.sln | 82 +++++++++++++++++++ .../Controllers/ValuesController.cs | 45 ++++++++++ .../O2NextGen.SLink.Api.csproj | 22 +++++ .../s-link/O2NextGen.SLink.Api/Program.cs | 24 ++++++ .../Properties/launchSettings.json | 30 +++++++ .../s-link/O2NextGen.SLink.Api/Startup.cs | 47 +++++++++++ .../appsettings.Development.json | 9 ++ .../O2NextGen.SLink.Api/appsettings.json | 8 ++ .../s-link/O2NextGen.SLink.Business/Class1.cs | 9 ++ .../O2NextGen.SLink.Business.csproj | 7 ++ .../s-link/O2NextGen.SLink.Data/Class1.cs | 8 ++ .../O2NextGen.SLink.Data.csproj | 7 ++ .../s-link/O2NextGen.SLink.Impl/Class1.cs | 8 ++ .../O2NextGen.SLink.Impl.csproj | 7 ++ ...ntegrationTests.O2NextGen.SLink.Api.csproj | 22 +++++ .../UnitTest1.cs | 14 ++++ .../Tests.O2NextGen.SLink.Api.csproj | 16 ++++ .../Tests.O2NextGen.SLink.Api/UnitTest1.cs | 18 ++++ .../Tests.O2NextGen.SLink.Business.csproj | 16 ++++ .../UnitTest1.cs | 18 ++++ .../Tests.O2NextGen.SLink.Data.csproj | 16 ++++ .../Tests.O2NextGen.SLink.Data/UnitTest1.cs | 18 ++++ .../Tests.O2NextGen.SLink.Impl.csproj | 16 ++++ .../Tests.O2NextGen.SLink.Impl/UnitTest1.cs | 18 ++++ 24 files changed, 485 insertions(+) create mode 100644 src/Services/s-link/O2NextGen.SLink.Api.sln create mode 100644 src/Services/s-link/O2NextGen.SLink.Api/Controllers/ValuesController.cs create mode 100644 src/Services/s-link/O2NextGen.SLink.Api/O2NextGen.SLink.Api.csproj create mode 100644 src/Services/s-link/O2NextGen.SLink.Api/Program.cs create mode 100644 src/Services/s-link/O2NextGen.SLink.Api/Properties/launchSettings.json create mode 100644 src/Services/s-link/O2NextGen.SLink.Api/Startup.cs create mode 100644 src/Services/s-link/O2NextGen.SLink.Api/appsettings.Development.json create mode 100644 src/Services/s-link/O2NextGen.SLink.Api/appsettings.json create mode 100644 src/Services/s-link/O2NextGen.SLink.Business/Class1.cs create mode 100644 src/Services/s-link/O2NextGen.SLink.Business/O2NextGen.SLink.Business.csproj create mode 100644 src/Services/s-link/O2NextGen.SLink.Data/Class1.cs create mode 100644 src/Services/s-link/O2NextGen.SLink.Data/O2NextGen.SLink.Data.csproj create mode 100644 src/Services/s-link/O2NextGen.SLink.Impl/Class1.cs create mode 100644 src/Services/s-link/O2NextGen.SLink.Impl/O2NextGen.SLink.Impl.csproj create mode 100644 src/Services/s-link/Tests/IntegrationTests.O2NextGen.SLink.Api/IntegrationTests.O2NextGen.SLink.Api.csproj create mode 100644 src/Services/s-link/Tests/IntegrationTests.O2NextGen.SLink.Api/UnitTest1.cs create mode 100644 src/Services/s-link/Tests/Tests.O2NextGen.SLink.Api/Tests.O2NextGen.SLink.Api.csproj create mode 100644 src/Services/s-link/Tests/Tests.O2NextGen.SLink.Api/UnitTest1.cs create mode 100644 src/Services/s-link/Tests/Tests.O2NextGen.SLink.Business/Tests.O2NextGen.SLink.Business.csproj create mode 100644 src/Services/s-link/Tests/Tests.O2NextGen.SLink.Business/UnitTest1.cs create mode 100644 src/Services/s-link/Tests/Tests.O2NextGen.SLink.Data/Tests.O2NextGen.SLink.Data.csproj create mode 100644 src/Services/s-link/Tests/Tests.O2NextGen.SLink.Data/UnitTest1.cs create mode 100644 src/Services/s-link/Tests/Tests.O2NextGen.SLink.Impl/Tests.O2NextGen.SLink.Impl.csproj create mode 100644 src/Services/s-link/Tests/Tests.O2NextGen.SLink.Impl/UnitTest1.cs diff --git a/src/Services/s-link/O2NextGen.SLink.Api.sln b/src/Services/s-link/O2NextGen.SLink.Api.sln new file mode 100644 index 00000000..6478069b --- /dev/null +++ b/src/Services/s-link/O2NextGen.SLink.Api.sln @@ -0,0 +1,82 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 17 +VisualStudioVersion = 17.0.32112.339 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "O2NextGen.SLink.Api", "O2NextGen.SLink.Api\O2NextGen.SLink.Api.csproj", "{94D995B2-470A-4342-AD02-CCC13AED2A2F}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "O2NextGen.SLink.Data", "O2NextGen.SLink.Data\O2NextGen.SLink.Data.csproj", "{D11C89E1-A0B4-4FA6-99B0-235C5DE7A5C0}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "O2NextGen.SLink.Business", "O2NextGen.SLink.Business\O2NextGen.SLink.Business.csproj", "{6C96CF31-EA2A-4A0A-8786-FEA05BE663B5}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "O2NextGen.SLink.Impl", "O2NextGen.SLink.Impl\O2NextGen.SLink.Impl.csproj", "{AC58FEDD-9702-4999-853C-4BD79D535A4E}" +EndProject +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Tests", "Tests", "{9521461A-EFA7-40FB-B2D6-348F8447E4A4}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Tests.O2NextGen.SLink.Api", "Tests\Tests.O2NextGen.SLink.Api\Tests.O2NextGen.SLink.Api.csproj", "{7067B97B-DB70-4013-9A91-F666D6072B7D}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Tests.O2NextGen.SLink.Data", "Tests\Tests.O2NextGen.SLink.Data\Tests.O2NextGen.SLink.Data.csproj", "{C9608EC7-1B44-4F0A-9A6C-3AB72EE98051}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Tests.O2NextGen.SLink.Business", "Tests\Tests.O2NextGen.SLink.Business\Tests.O2NextGen.SLink.Business.csproj", "{1C105476-A7E6-44C5-8D4A-55AC975370E8}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Tests.O2NextGen.SLink.Impl", "Tests\Tests.O2NextGen.SLink.Impl\Tests.O2NextGen.SLink.Impl.csproj", "{8B99E807-47C6-4626-A163-280AB0852721}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "IntegrationTests.O2NextGen.SLink.Api", "Tests\IntegrationTests.O2NextGen.SLink.Api\IntegrationTests.O2NextGen.SLink.Api.csproj", "{011C0E21-4055-4636-8D5B-5187BE2FFE34}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {94D995B2-470A-4342-AD02-CCC13AED2A2F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {94D995B2-470A-4342-AD02-CCC13AED2A2F}.Debug|Any CPU.Build.0 = Debug|Any CPU + {94D995B2-470A-4342-AD02-CCC13AED2A2F}.Release|Any CPU.ActiveCfg = Release|Any CPU + {94D995B2-470A-4342-AD02-CCC13AED2A2F}.Release|Any CPU.Build.0 = Release|Any CPU + {D11C89E1-A0B4-4FA6-99B0-235C5DE7A5C0}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {D11C89E1-A0B4-4FA6-99B0-235C5DE7A5C0}.Debug|Any CPU.Build.0 = Debug|Any CPU + {D11C89E1-A0B4-4FA6-99B0-235C5DE7A5C0}.Release|Any CPU.ActiveCfg = Release|Any CPU + {D11C89E1-A0B4-4FA6-99B0-235C5DE7A5C0}.Release|Any CPU.Build.0 = Release|Any CPU + {6C96CF31-EA2A-4A0A-8786-FEA05BE663B5}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {6C96CF31-EA2A-4A0A-8786-FEA05BE663B5}.Debug|Any CPU.Build.0 = Debug|Any CPU + {6C96CF31-EA2A-4A0A-8786-FEA05BE663B5}.Release|Any CPU.ActiveCfg = Release|Any CPU + {6C96CF31-EA2A-4A0A-8786-FEA05BE663B5}.Release|Any CPU.Build.0 = Release|Any CPU + {AC58FEDD-9702-4999-853C-4BD79D535A4E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {AC58FEDD-9702-4999-853C-4BD79D535A4E}.Debug|Any CPU.Build.0 = Debug|Any CPU + {AC58FEDD-9702-4999-853C-4BD79D535A4E}.Release|Any CPU.ActiveCfg = Release|Any CPU + {AC58FEDD-9702-4999-853C-4BD79D535A4E}.Release|Any CPU.Build.0 = Release|Any CPU + {7067B97B-DB70-4013-9A91-F666D6072B7D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {7067B97B-DB70-4013-9A91-F666D6072B7D}.Debug|Any CPU.Build.0 = Debug|Any CPU + {7067B97B-DB70-4013-9A91-F666D6072B7D}.Release|Any CPU.ActiveCfg = Release|Any CPU + {7067B97B-DB70-4013-9A91-F666D6072B7D}.Release|Any CPU.Build.0 = Release|Any CPU + {C9608EC7-1B44-4F0A-9A6C-3AB72EE98051}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {C9608EC7-1B44-4F0A-9A6C-3AB72EE98051}.Debug|Any CPU.Build.0 = Debug|Any CPU + {C9608EC7-1B44-4F0A-9A6C-3AB72EE98051}.Release|Any CPU.ActiveCfg = Release|Any CPU + {C9608EC7-1B44-4F0A-9A6C-3AB72EE98051}.Release|Any CPU.Build.0 = Release|Any CPU + {1C105476-A7E6-44C5-8D4A-55AC975370E8}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {1C105476-A7E6-44C5-8D4A-55AC975370E8}.Debug|Any CPU.Build.0 = Debug|Any CPU + {1C105476-A7E6-44C5-8D4A-55AC975370E8}.Release|Any CPU.ActiveCfg = Release|Any CPU + {1C105476-A7E6-44C5-8D4A-55AC975370E8}.Release|Any CPU.Build.0 = Release|Any CPU + {8B99E807-47C6-4626-A163-280AB0852721}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {8B99E807-47C6-4626-A163-280AB0852721}.Debug|Any CPU.Build.0 = Debug|Any CPU + {8B99E807-47C6-4626-A163-280AB0852721}.Release|Any CPU.ActiveCfg = Release|Any CPU + {8B99E807-47C6-4626-A163-280AB0852721}.Release|Any CPU.Build.0 = Release|Any CPU + {011C0E21-4055-4636-8D5B-5187BE2FFE34}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {011C0E21-4055-4636-8D5B-5187BE2FFE34}.Debug|Any CPU.Build.0 = Debug|Any CPU + {011C0E21-4055-4636-8D5B-5187BE2FFE34}.Release|Any CPU.ActiveCfg = Release|Any CPU + {011C0E21-4055-4636-8D5B-5187BE2FFE34}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(NestedProjects) = preSolution + {7067B97B-DB70-4013-9A91-F666D6072B7D} = {9521461A-EFA7-40FB-B2D6-348F8447E4A4} + {C9608EC7-1B44-4F0A-9A6C-3AB72EE98051} = {9521461A-EFA7-40FB-B2D6-348F8447E4A4} + {1C105476-A7E6-44C5-8D4A-55AC975370E8} = {9521461A-EFA7-40FB-B2D6-348F8447E4A4} + {8B99E807-47C6-4626-A163-280AB0852721} = {9521461A-EFA7-40FB-B2D6-348F8447E4A4} + {011C0E21-4055-4636-8D5B-5187BE2FFE34} = {9521461A-EFA7-40FB-B2D6-348F8447E4A4} + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {77126761-1223-4C12-BF17-1BBC37E5E2AA} + EndGlobalSection +EndGlobal diff --git a/src/Services/s-link/O2NextGen.SLink.Api/Controllers/ValuesController.cs b/src/Services/s-link/O2NextGen.SLink.Api/Controllers/ValuesController.cs new file mode 100644 index 00000000..ff5c1c6a --- /dev/null +++ b/src/Services/s-link/O2NextGen.SLink.Api/Controllers/ValuesController.cs @@ -0,0 +1,45 @@ +using Microsoft.AspNetCore.Mvc; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Threading.Tasks; + +namespace O2NextGen.SLink.Api.Controllers +{ + [Route("api/[controller]")] + [ApiController] + public class ValuesController : ControllerBase + { + // GET api/values + [HttpGet] + public ActionResult> Get() + { + return new string[] { "value1", "value2" }; + } + + // GET api/values/5 + [HttpGet("{id}")] + public ActionResult Get(int id) + { + return "value"; + } + + // POST api/values + [HttpPost] + public void Post([FromBody] string value) + { + } + + // PUT api/values/5 + [HttpPut("{id}")] + public void Put(int id, [FromBody] string value) + { + } + + // DELETE api/values/5 + [HttpDelete("{id}")] + public void Delete(int id) + { + } + } +} diff --git a/src/Services/s-link/O2NextGen.SLink.Api/O2NextGen.SLink.Api.csproj b/src/Services/s-link/O2NextGen.SLink.Api/O2NextGen.SLink.Api.csproj new file mode 100644 index 00000000..1d09e569 --- /dev/null +++ b/src/Services/s-link/O2NextGen.SLink.Api/O2NextGen.SLink.Api.csproj @@ -0,0 +1,22 @@ + + + + netcoreapp2.1 + + + + + + + + + + + + + + + + + + diff --git a/src/Services/s-link/O2NextGen.SLink.Api/Program.cs b/src/Services/s-link/O2NextGen.SLink.Api/Program.cs new file mode 100644 index 00000000..feb9a4bc --- /dev/null +++ b/src/Services/s-link/O2NextGen.SLink.Api/Program.cs @@ -0,0 +1,24 @@ +using Microsoft.AspNetCore; +using Microsoft.AspNetCore.Hosting; +using Microsoft.Extensions.Configuration; +using Microsoft.Extensions.Logging; +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; + +namespace O2NextGen.SLink.Api +{ + public class Program + { + public static void Main(string[] args) + { + CreateWebHostBuilder(args).Build().Run(); + } + + public static IWebHostBuilder CreateWebHostBuilder(string[] args) => + WebHost.CreateDefaultBuilder(args) + .UseStartup(); + } +} diff --git a/src/Services/s-link/O2NextGen.SLink.Api/Properties/launchSettings.json b/src/Services/s-link/O2NextGen.SLink.Api/Properties/launchSettings.json new file mode 100644 index 00000000..7b69391f --- /dev/null +++ b/src/Services/s-link/O2NextGen.SLink.Api/Properties/launchSettings.json @@ -0,0 +1,30 @@ +{ + "$schema": "http://json.schemastore.org/launchsettings.json", + "iisSettings": { + "windowsAuthentication": false, + "anonymousAuthentication": true, + "iisExpress": { + "applicationUrl": "http://localhost:15456", + "sslPort": 44322 + } + }, + "profiles": { + "IIS Express": { + "commandName": "IISExpress", + "launchBrowser": true, + "launchUrl": "api/values", + "environmentVariables": { + "ASPNETCORE_ENVIRONMENT": "Development" + } + }, + "O2NextGen.SLink.Api": { + "commandName": "Project", + "launchBrowser": true, + "launchUrl": "api/values", + "applicationUrl": "https://localhost:5001;http://localhost:5000", + "environmentVariables": { + "ASPNETCORE_ENVIRONMENT": "Development" + } + } + } +} \ No newline at end of file diff --git a/src/Services/s-link/O2NextGen.SLink.Api/Startup.cs b/src/Services/s-link/O2NextGen.SLink.Api/Startup.cs new file mode 100644 index 00000000..e71ce6b3 --- /dev/null +++ b/src/Services/s-link/O2NextGen.SLink.Api/Startup.cs @@ -0,0 +1,47 @@ +using Microsoft.AspNetCore.Builder; +using Microsoft.AspNetCore.Hosting; +using Microsoft.AspNetCore.HttpsPolicy; +using Microsoft.AspNetCore.Mvc; +using Microsoft.Extensions.Configuration; +using Microsoft.Extensions.DependencyInjection; +using Microsoft.Extensions.Logging; +using Microsoft.Extensions.Options; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Threading.Tasks; + +namespace O2NextGen.SLink.Api +{ + public class Startup + { + public Startup(IConfiguration configuration) + { + Configuration = configuration; + } + + public IConfiguration Configuration { get; } + + // This method gets called by the runtime. Use this method to add services to the container. + public void ConfigureServices(IServiceCollection services) + { + services.AddMvc().SetCompatibilityVersion(CompatibilityVersion.Version_2_1); + } + + // This method gets called by the runtime. Use this method to configure the HTTP request pipeline. + public void Configure(IApplicationBuilder app, IHostingEnvironment env) + { + if (env.IsDevelopment()) + { + app.UseDeveloperExceptionPage(); + } + else + { + app.UseHsts(); + } + + app.UseHttpsRedirection(); + app.UseMvc(); + } + } +} diff --git a/src/Services/s-link/O2NextGen.SLink.Api/appsettings.Development.json b/src/Services/s-link/O2NextGen.SLink.Api/appsettings.Development.json new file mode 100644 index 00000000..e203e940 --- /dev/null +++ b/src/Services/s-link/O2NextGen.SLink.Api/appsettings.Development.json @@ -0,0 +1,9 @@ +{ + "Logging": { + "LogLevel": { + "Default": "Debug", + "System": "Information", + "Microsoft": "Information" + } + } +} diff --git a/src/Services/s-link/O2NextGen.SLink.Api/appsettings.json b/src/Services/s-link/O2NextGen.SLink.Api/appsettings.json new file mode 100644 index 00000000..def9159a --- /dev/null +++ b/src/Services/s-link/O2NextGen.SLink.Api/appsettings.json @@ -0,0 +1,8 @@ +{ + "Logging": { + "LogLevel": { + "Default": "Warning" + } + }, + "AllowedHosts": "*" +} diff --git a/src/Services/s-link/O2NextGen.SLink.Business/Class1.cs b/src/Services/s-link/O2NextGen.SLink.Business/Class1.cs new file mode 100644 index 00000000..426e70ca --- /dev/null +++ b/src/Services/s-link/O2NextGen.SLink.Business/Class1.cs @@ -0,0 +1,9 @@ + +using System; + +namespace O2NextGen.SLink.Business +{ + public class Class1 + { + } +} diff --git a/src/Services/s-link/O2NextGen.SLink.Business/O2NextGen.SLink.Business.csproj b/src/Services/s-link/O2NextGen.SLink.Business/O2NextGen.SLink.Business.csproj new file mode 100644 index 00000000..86ea3bbe --- /dev/null +++ b/src/Services/s-link/O2NextGen.SLink.Business/O2NextGen.SLink.Business.csproj @@ -0,0 +1,7 @@ + + + + netcoreapp2.1 + + + diff --git a/src/Services/s-link/O2NextGen.SLink.Data/Class1.cs b/src/Services/s-link/O2NextGen.SLink.Data/Class1.cs new file mode 100644 index 00000000..d3ae4cac --- /dev/null +++ b/src/Services/s-link/O2NextGen.SLink.Data/Class1.cs @@ -0,0 +1,8 @@ +using System; + +namespace O2NextGen.SLink.Data +{ + public class Class1 + { + } +} diff --git a/src/Services/s-link/O2NextGen.SLink.Data/O2NextGen.SLink.Data.csproj b/src/Services/s-link/O2NextGen.SLink.Data/O2NextGen.SLink.Data.csproj new file mode 100644 index 00000000..86ea3bbe --- /dev/null +++ b/src/Services/s-link/O2NextGen.SLink.Data/O2NextGen.SLink.Data.csproj @@ -0,0 +1,7 @@ + + + + netcoreapp2.1 + + + diff --git a/src/Services/s-link/O2NextGen.SLink.Impl/Class1.cs b/src/Services/s-link/O2NextGen.SLink.Impl/Class1.cs new file mode 100644 index 00000000..8f22a3a4 --- /dev/null +++ b/src/Services/s-link/O2NextGen.SLink.Impl/Class1.cs @@ -0,0 +1,8 @@ +using System; + +namespace O2NextGen.SLink.Impl +{ + public class Class1 + { + } +} diff --git a/src/Services/s-link/O2NextGen.SLink.Impl/O2NextGen.SLink.Impl.csproj b/src/Services/s-link/O2NextGen.SLink.Impl/O2NextGen.SLink.Impl.csproj new file mode 100644 index 00000000..86ea3bbe --- /dev/null +++ b/src/Services/s-link/O2NextGen.SLink.Impl/O2NextGen.SLink.Impl.csproj @@ -0,0 +1,7 @@ + + + + netcoreapp2.1 + + + diff --git a/src/Services/s-link/Tests/IntegrationTests.O2NextGen.SLink.Api/IntegrationTests.O2NextGen.SLink.Api.csproj b/src/Services/s-link/Tests/IntegrationTests.O2NextGen.SLink.Api/IntegrationTests.O2NextGen.SLink.Api.csproj new file mode 100644 index 00000000..9c2aad77 --- /dev/null +++ b/src/Services/s-link/Tests/IntegrationTests.O2NextGen.SLink.Api/IntegrationTests.O2NextGen.SLink.Api.csproj @@ -0,0 +1,22 @@ + + + + netcoreapp2.1 + + false + + + + + + + runtime; build; native; contentfiles; analyzers; buildtransitive + all + + + runtime; build; native; contentfiles; analyzers; buildtransitive + all + + + + diff --git a/src/Services/s-link/Tests/IntegrationTests.O2NextGen.SLink.Api/UnitTest1.cs b/src/Services/s-link/Tests/IntegrationTests.O2NextGen.SLink.Api/UnitTest1.cs new file mode 100644 index 00000000..79ff728c --- /dev/null +++ b/src/Services/s-link/Tests/IntegrationTests.O2NextGen.SLink.Api/UnitTest1.cs @@ -0,0 +1,14 @@ +using System; +using Xunit; + +namespace IntegrationTests.O2NextGen.SLink.Api +{ + public class UnitTest1 + { + [Fact] + public void Test1() + { + + } + } +} diff --git a/src/Services/s-link/Tests/Tests.O2NextGen.SLink.Api/Tests.O2NextGen.SLink.Api.csproj b/src/Services/s-link/Tests/Tests.O2NextGen.SLink.Api/Tests.O2NextGen.SLink.Api.csproj new file mode 100644 index 00000000..d7b45d57 --- /dev/null +++ b/src/Services/s-link/Tests/Tests.O2NextGen.SLink.Api/Tests.O2NextGen.SLink.Api.csproj @@ -0,0 +1,16 @@ + + + + netcoreapp2.1 + + false + + + + + + + + + + diff --git a/src/Services/s-link/Tests/Tests.O2NextGen.SLink.Api/UnitTest1.cs b/src/Services/s-link/Tests/Tests.O2NextGen.SLink.Api/UnitTest1.cs new file mode 100644 index 00000000..82cbb28f --- /dev/null +++ b/src/Services/s-link/Tests/Tests.O2NextGen.SLink.Api/UnitTest1.cs @@ -0,0 +1,18 @@ +using NUnit.Framework; + +namespace Tests.O2NextGen.SLink.Api +{ + public class Tests + { + [SetUp] + public void Setup() + { + } + + [Test] + public void Test1() + { + Assert.Pass(); + } + } +} \ No newline at end of file diff --git a/src/Services/s-link/Tests/Tests.O2NextGen.SLink.Business/Tests.O2NextGen.SLink.Business.csproj b/src/Services/s-link/Tests/Tests.O2NextGen.SLink.Business/Tests.O2NextGen.SLink.Business.csproj new file mode 100644 index 00000000..d7b45d57 --- /dev/null +++ b/src/Services/s-link/Tests/Tests.O2NextGen.SLink.Business/Tests.O2NextGen.SLink.Business.csproj @@ -0,0 +1,16 @@ + + + + netcoreapp2.1 + + false + + + + + + + + + + diff --git a/src/Services/s-link/Tests/Tests.O2NextGen.SLink.Business/UnitTest1.cs b/src/Services/s-link/Tests/Tests.O2NextGen.SLink.Business/UnitTest1.cs new file mode 100644 index 00000000..92d91070 --- /dev/null +++ b/src/Services/s-link/Tests/Tests.O2NextGen.SLink.Business/UnitTest1.cs @@ -0,0 +1,18 @@ +using NUnit.Framework; + +namespace Tests.O2NextGen.SLink.Business +{ + public class Tests + { + [SetUp] + public void Setup() + { + } + + [Test] + public void Test1() + { + Assert.Pass(); + } + } +} \ No newline at end of file diff --git a/src/Services/s-link/Tests/Tests.O2NextGen.SLink.Data/Tests.O2NextGen.SLink.Data.csproj b/src/Services/s-link/Tests/Tests.O2NextGen.SLink.Data/Tests.O2NextGen.SLink.Data.csproj new file mode 100644 index 00000000..d7b45d57 --- /dev/null +++ b/src/Services/s-link/Tests/Tests.O2NextGen.SLink.Data/Tests.O2NextGen.SLink.Data.csproj @@ -0,0 +1,16 @@ + + + + netcoreapp2.1 + + false + + + + + + + + + + diff --git a/src/Services/s-link/Tests/Tests.O2NextGen.SLink.Data/UnitTest1.cs b/src/Services/s-link/Tests/Tests.O2NextGen.SLink.Data/UnitTest1.cs new file mode 100644 index 00000000..7697c4f7 --- /dev/null +++ b/src/Services/s-link/Tests/Tests.O2NextGen.SLink.Data/UnitTest1.cs @@ -0,0 +1,18 @@ +using NUnit.Framework; + +namespace Tests.O2NextGen.SLink.Data +{ + public class Tests + { + [SetUp] + public void Setup() + { + } + + [Test] + public void Test1() + { + Assert.Pass(); + } + } +} \ No newline at end of file diff --git a/src/Services/s-link/Tests/Tests.O2NextGen.SLink.Impl/Tests.O2NextGen.SLink.Impl.csproj b/src/Services/s-link/Tests/Tests.O2NextGen.SLink.Impl/Tests.O2NextGen.SLink.Impl.csproj new file mode 100644 index 00000000..d7b45d57 --- /dev/null +++ b/src/Services/s-link/Tests/Tests.O2NextGen.SLink.Impl/Tests.O2NextGen.SLink.Impl.csproj @@ -0,0 +1,16 @@ + + + + netcoreapp2.1 + + false + + + + + + + + + + diff --git a/src/Services/s-link/Tests/Tests.O2NextGen.SLink.Impl/UnitTest1.cs b/src/Services/s-link/Tests/Tests.O2NextGen.SLink.Impl/UnitTest1.cs new file mode 100644 index 00000000..d7a5f5d5 --- /dev/null +++ b/src/Services/s-link/Tests/Tests.O2NextGen.SLink.Impl/UnitTest1.cs @@ -0,0 +1,18 @@ +using NUnit.Framework; + +namespace Tests.O2NextGen.SLink.Impl +{ + public class Tests + { + [SetUp] + public void Setup() + { + } + + [Test] + public void Test1() + { + Assert.Pass(); + } + } +} \ No newline at end of file From f2cd1a7eaa75aed596e97c8d7dff85bf1abf39d6 Mon Sep 17 00:00:00 2001 From: Denis Prokhorchik Date: Sat, 26 Mar 2022 22:48:08 +0300 Subject: [PATCH 2/3] chore(issue-198): code cleanup --- .../O2NextGen.SLink.Api/Controllers/ValuesController.cs | 3 --- src/Services/s-link/O2NextGen.SLink.Api/Program.cs | 7 ------- src/Services/s-link/O2NextGen.SLink.Api/Startup.cs | 7 ------- src/Services/s-link/O2NextGen.SLink.Business/Class1.cs | 5 +---- src/Services/s-link/O2NextGen.SLink.Data/Class1.cs | 4 +--- src/Services/s-link/O2NextGen.SLink.Impl/Class1.cs | 4 +--- .../IntegrationTests.O2NextGen.SLink.Api/UnitTest1.cs | 1 - 7 files changed, 3 insertions(+), 28 deletions(-) diff --git a/src/Services/s-link/O2NextGen.SLink.Api/Controllers/ValuesController.cs b/src/Services/s-link/O2NextGen.SLink.Api/Controllers/ValuesController.cs index ff5c1c6a..1a3c83dc 100644 --- a/src/Services/s-link/O2NextGen.SLink.Api/Controllers/ValuesController.cs +++ b/src/Services/s-link/O2NextGen.SLink.Api/Controllers/ValuesController.cs @@ -1,8 +1,5 @@ using Microsoft.AspNetCore.Mvc; -using System; using System.Collections.Generic; -using System.Linq; -using System.Threading.Tasks; namespace O2NextGen.SLink.Api.Controllers { diff --git a/src/Services/s-link/O2NextGen.SLink.Api/Program.cs b/src/Services/s-link/O2NextGen.SLink.Api/Program.cs index feb9a4bc..35e9c27f 100644 --- a/src/Services/s-link/O2NextGen.SLink.Api/Program.cs +++ b/src/Services/s-link/O2NextGen.SLink.Api/Program.cs @@ -1,12 +1,5 @@ using Microsoft.AspNetCore; using Microsoft.AspNetCore.Hosting; -using Microsoft.Extensions.Configuration; -using Microsoft.Extensions.Logging; -using System; -using System.Collections.Generic; -using System.IO; -using System.Linq; -using System.Threading.Tasks; namespace O2NextGen.SLink.Api { diff --git a/src/Services/s-link/O2NextGen.SLink.Api/Startup.cs b/src/Services/s-link/O2NextGen.SLink.Api/Startup.cs index e71ce6b3..61ca2155 100644 --- a/src/Services/s-link/O2NextGen.SLink.Api/Startup.cs +++ b/src/Services/s-link/O2NextGen.SLink.Api/Startup.cs @@ -1,15 +1,8 @@ using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.Hosting; -using Microsoft.AspNetCore.HttpsPolicy; using Microsoft.AspNetCore.Mvc; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.DependencyInjection; -using Microsoft.Extensions.Logging; -using Microsoft.Extensions.Options; -using System; -using System.Collections.Generic; -using System.Linq; -using System.Threading.Tasks; namespace O2NextGen.SLink.Api { diff --git a/src/Services/s-link/O2NextGen.SLink.Business/Class1.cs b/src/Services/s-link/O2NextGen.SLink.Business/Class1.cs index 426e70ca..868c9a1f 100644 --- a/src/Services/s-link/O2NextGen.SLink.Business/Class1.cs +++ b/src/Services/s-link/O2NextGen.SLink.Business/Class1.cs @@ -1,7 +1,4 @@ - -using System; - -namespace O2NextGen.SLink.Business +namespace O2NextGen.SLink.Business { public class Class1 { diff --git a/src/Services/s-link/O2NextGen.SLink.Data/Class1.cs b/src/Services/s-link/O2NextGen.SLink.Data/Class1.cs index d3ae4cac..6733be33 100644 --- a/src/Services/s-link/O2NextGen.SLink.Data/Class1.cs +++ b/src/Services/s-link/O2NextGen.SLink.Data/Class1.cs @@ -1,6 +1,4 @@ -using System; - -namespace O2NextGen.SLink.Data +namespace O2NextGen.SLink.Data { public class Class1 { diff --git a/src/Services/s-link/O2NextGen.SLink.Impl/Class1.cs b/src/Services/s-link/O2NextGen.SLink.Impl/Class1.cs index 8f22a3a4..2f0b577d 100644 --- a/src/Services/s-link/O2NextGen.SLink.Impl/Class1.cs +++ b/src/Services/s-link/O2NextGen.SLink.Impl/Class1.cs @@ -1,6 +1,4 @@ -using System; - -namespace O2NextGen.SLink.Impl +namespace O2NextGen.SLink.Impl { public class Class1 { diff --git a/src/Services/s-link/Tests/IntegrationTests.O2NextGen.SLink.Api/UnitTest1.cs b/src/Services/s-link/Tests/IntegrationTests.O2NextGen.SLink.Api/UnitTest1.cs index 79ff728c..b670dcf8 100644 --- a/src/Services/s-link/Tests/IntegrationTests.O2NextGen.SLink.Api/UnitTest1.cs +++ b/src/Services/s-link/Tests/IntegrationTests.O2NextGen.SLink.Api/UnitTest1.cs @@ -1,4 +1,3 @@ -using System; using Xunit; namespace IntegrationTests.O2NextGen.SLink.Api From 9044faeef65c3fe28218a0b1b82203fec1bf9948 Mon Sep 17 00:00:00 2001 From: Denis Prokhorchik Date: Sat, 26 Mar 2022 22:49:22 +0300 Subject: [PATCH 3/3] feat(issue-198): update launchsettings.json of slink-api project --- .../Properties/launchSettings.json | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/src/Services/s-link/O2NextGen.SLink.Api/Properties/launchSettings.json b/src/Services/s-link/O2NextGen.SLink.Api/Properties/launchSettings.json index 7b69391f..492692dd 100644 --- a/src/Services/s-link/O2NextGen.SLink.Api/Properties/launchSettings.json +++ b/src/Services/s-link/O2NextGen.SLink.Api/Properties/launchSettings.json @@ -1,22 +1,6 @@ { "$schema": "http://json.schemastore.org/launchsettings.json", - "iisSettings": { - "windowsAuthentication": false, - "anonymousAuthentication": true, - "iisExpress": { - "applicationUrl": "http://localhost:15456", - "sslPort": 44322 - } - }, "profiles": { - "IIS Express": { - "commandName": "IISExpress", - "launchBrowser": true, - "launchUrl": "api/values", - "environmentVariables": { - "ASPNETCORE_ENVIRONMENT": "Development" - } - }, "O2NextGen.SLink.Api": { "commandName": "Project", "launchBrowser": true,