From 09a928196ff880f2af40edb0d51d0747add296a3 Mon Sep 17 00:00:00 2001 From: Denis Prokhorchik Date: Sat, 26 Mar 2022 23:48:24 +0300 Subject: [PATCH 1/4] faet(issue-91): add smart-subscriber service --- .../O2NextGen.SmartSubscriber.Api.sln | 82 +++++++++++++++++++ .../Controllers/ValuesController.cs | 45 ++++++++++ .../O2NextGen.SmartSubscriber.Api.csproj | 16 ++++ .../O2NextGen.SmartSubscriber.Api/Program.cs | 24 ++++++ .../Properties/launchSettings.json | 30 +++++++ .../O2NextGen.SmartSubscriber.Api/Startup.cs | 47 +++++++++++ .../appsettings.Development.json | 9 ++ .../appsettings.json | 8 ++ .../Class1.cs | 8 ++ .../O2NextGen.SmartSubscriber.Business.csproj | 7 ++ .../O2NextGen.SmartSubscriber.Data/Class1.cs | 8 ++ .../O2NextGen.SmartSubscriber.Data.csproj | 7 ++ .../O2NextGen.SmartSubscriber.Impl/Class1.cs | 8 ++ .../O2NextGen.SmartSubscriber.Impl.csproj | 7 ++ ...Tests.O2NextGen.SmartSubscriber.Api.csproj | 22 +++++ .../UnitTest1.cs | 14 ++++ ...Tests.O2NextGen.SmartSubscriber.Api.csproj | 16 ++++ .../UnitTest1.cs | 18 ++++ ....O2NextGen.SmartSubscriber.Business.csproj | 16 ++++ .../UnitTest1.cs | 18 ++++ ...ests.O2NextGen.SmartSubscriber.Data.csproj | 16 ++++ .../UnitTest1.cs | 18 ++++ ...ests.O2NextGen.SmartSubscriber.Impl.csproj | 16 ++++ .../UnitTest1.cs | 18 ++++ 24 files changed, 478 insertions(+) create mode 100644 src/Services/smart-subscriber/O2NextGen.SmartSubscriber.Api.sln create mode 100644 src/Services/smart-subscriber/O2NextGen.SmartSubscriber.Api/Controllers/ValuesController.cs create mode 100644 src/Services/smart-subscriber/O2NextGen.SmartSubscriber.Api/O2NextGen.SmartSubscriber.Api.csproj create mode 100644 src/Services/smart-subscriber/O2NextGen.SmartSubscriber.Api/Program.cs create mode 100644 src/Services/smart-subscriber/O2NextGen.SmartSubscriber.Api/Properties/launchSettings.json create mode 100644 src/Services/smart-subscriber/O2NextGen.SmartSubscriber.Api/Startup.cs create mode 100644 src/Services/smart-subscriber/O2NextGen.SmartSubscriber.Api/appsettings.Development.json create mode 100644 src/Services/smart-subscriber/O2NextGen.SmartSubscriber.Api/appsettings.json create mode 100644 src/Services/smart-subscriber/O2NextGen.SmartSubscriber.Business/Class1.cs create mode 100644 src/Services/smart-subscriber/O2NextGen.SmartSubscriber.Business/O2NextGen.SmartSubscriber.Business.csproj create mode 100644 src/Services/smart-subscriber/O2NextGen.SmartSubscriber.Data/Class1.cs create mode 100644 src/Services/smart-subscriber/O2NextGen.SmartSubscriber.Data/O2NextGen.SmartSubscriber.Data.csproj create mode 100644 src/Services/smart-subscriber/O2NextGen.SmartSubscriber.Impl/Class1.cs create mode 100644 src/Services/smart-subscriber/O2NextGen.SmartSubscriber.Impl/O2NextGen.SmartSubscriber.Impl.csproj create mode 100644 src/Services/smart-subscriber/Tests/IntegrationTests.O2NextGen.SmartSubscriber.Api/IntegrationTests.O2NextGen.SmartSubscriber.Api.csproj create mode 100644 src/Services/smart-subscriber/Tests/IntegrationTests.O2NextGen.SmartSubscriber.Api/UnitTest1.cs create mode 100644 src/Services/smart-subscriber/Tests/Tests.O2NextGen.SmartSubscriber.Api/Tests.O2NextGen.SmartSubscriber.Api.csproj create mode 100644 src/Services/smart-subscriber/Tests/Tests.O2NextGen.SmartSubscriber.Api/UnitTest1.cs create mode 100644 src/Services/smart-subscriber/Tests/Tests.O2NextGen.SmartSubscriber.Business/Tests.O2NextGen.SmartSubscriber.Business.csproj create mode 100644 src/Services/smart-subscriber/Tests/Tests.O2NextGen.SmartSubscriber.Business/UnitTest1.cs create mode 100644 src/Services/smart-subscriber/Tests/Tests.O2NextGen.SmartSubscriber.Data/Tests.O2NextGen.SmartSubscriber.Data.csproj create mode 100644 src/Services/smart-subscriber/Tests/Tests.O2NextGen.SmartSubscriber.Data/UnitTest1.cs create mode 100644 src/Services/smart-subscriber/Tests/Tests.O2NextGen.SmartSubscriber.Impl/Tests.O2NextGen.SmartSubscriber.Impl.csproj create mode 100644 src/Services/smart-subscriber/Tests/Tests.O2NextGen.SmartSubscriber.Impl/UnitTest1.cs diff --git a/src/Services/smart-subscriber/O2NextGen.SmartSubscriber.Api.sln b/src/Services/smart-subscriber/O2NextGen.SmartSubscriber.Api.sln new file mode 100644 index 00000000..290a7510 --- /dev/null +++ b/src/Services/smart-subscriber/O2NextGen.SmartSubscriber.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("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "O2NextGen.SmartSubscriber.Api", "O2NextGen.SmartSubscriber.Api\O2NextGen.SmartSubscriber.Api.csproj", "{DE15D281-4ACD-482F-9323-BA06E53E86E0}" +EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "O2NextGen.SmartSubscriber.Data", "O2NextGen.SmartSubscriber.Data\O2NextGen.SmartSubscriber.Data.csproj", "{860DF0EC-01B1-4022-BDAD-3ADADD7CAD8E}" +EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "O2NextGen.SmartSubscriber.Business", "O2NextGen.SmartSubscriber.Business\O2NextGen.SmartSubscriber.Business.csproj", "{246C4D42-4008-402A-8BD2-90250840B906}" +EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "O2NextGen.SmartSubscriber.Impl", "O2NextGen.SmartSubscriber.Impl\O2NextGen.SmartSubscriber.Impl.csproj", "{6B83709F-FAF9-4144-8311-58B989FC4767}" +EndProject +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Tests", "Tests", "{BD99560F-E175-44CE-B384-BDF4515C7DB6}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Tests.O2NextGen.SmartSubscriber.Api", "Tests\Tests.O2NextGen.SmartSubscriber.Api\Tests.O2NextGen.SmartSubscriber.Api.csproj", "{20D4431B-5013-45F1-9AF0-47C2CE084D87}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Tests.O2NextGen.SmartSubscriber.Business", "Tests\Tests.O2NextGen.SmartSubscriber.Business\Tests.O2NextGen.SmartSubscriber.Business.csproj", "{C74D52BB-491F-475B-AE72-E8CC296C6527}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Tests.O2NextGen.SmartSubscriber.Data", "Tests\Tests.O2NextGen.SmartSubscriber.Data\Tests.O2NextGen.SmartSubscriber.Data.csproj", "{448398BA-496F-4CCD-93C9-B2271C8C6DB1}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Tests.O2NextGen.SmartSubscriber.Impl", "Tests\Tests.O2NextGen.SmartSubscriber.Impl\Tests.O2NextGen.SmartSubscriber.Impl.csproj", "{2CB74D97-F7F9-4920-85FA-38F539BF3949}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "IntegrationTests.O2NextGen.SmartSubscriber.Api", "Tests\IntegrationTests.O2NextGen.SmartSubscriber.Api\IntegrationTests.O2NextGen.SmartSubscriber.Api.csproj", "{225EFEC4-B5D6-4886-864A-C0CD23DA709A}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {DE15D281-4ACD-482F-9323-BA06E53E86E0}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {DE15D281-4ACD-482F-9323-BA06E53E86E0}.Debug|Any CPU.Build.0 = Debug|Any CPU + {DE15D281-4ACD-482F-9323-BA06E53E86E0}.Release|Any CPU.ActiveCfg = Release|Any CPU + {DE15D281-4ACD-482F-9323-BA06E53E86E0}.Release|Any CPU.Build.0 = Release|Any CPU + {860DF0EC-01B1-4022-BDAD-3ADADD7CAD8E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {860DF0EC-01B1-4022-BDAD-3ADADD7CAD8E}.Debug|Any CPU.Build.0 = Debug|Any CPU + {860DF0EC-01B1-4022-BDAD-3ADADD7CAD8E}.Release|Any CPU.ActiveCfg = Release|Any CPU + {860DF0EC-01B1-4022-BDAD-3ADADD7CAD8E}.Release|Any CPU.Build.0 = Release|Any CPU + {246C4D42-4008-402A-8BD2-90250840B906}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {246C4D42-4008-402A-8BD2-90250840B906}.Debug|Any CPU.Build.0 = Debug|Any CPU + {246C4D42-4008-402A-8BD2-90250840B906}.Release|Any CPU.ActiveCfg = Release|Any CPU + {246C4D42-4008-402A-8BD2-90250840B906}.Release|Any CPU.Build.0 = Release|Any CPU + {6B83709F-FAF9-4144-8311-58B989FC4767}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {6B83709F-FAF9-4144-8311-58B989FC4767}.Debug|Any CPU.Build.0 = Debug|Any CPU + {6B83709F-FAF9-4144-8311-58B989FC4767}.Release|Any CPU.ActiveCfg = Release|Any CPU + {6B83709F-FAF9-4144-8311-58B989FC4767}.Release|Any CPU.Build.0 = Release|Any CPU + {20D4431B-5013-45F1-9AF0-47C2CE084D87}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {20D4431B-5013-45F1-9AF0-47C2CE084D87}.Debug|Any CPU.Build.0 = Debug|Any CPU + {20D4431B-5013-45F1-9AF0-47C2CE084D87}.Release|Any CPU.ActiveCfg = Release|Any CPU + {20D4431B-5013-45F1-9AF0-47C2CE084D87}.Release|Any CPU.Build.0 = Release|Any CPU + {C74D52BB-491F-475B-AE72-E8CC296C6527}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {C74D52BB-491F-475B-AE72-E8CC296C6527}.Debug|Any CPU.Build.0 = Debug|Any CPU + {C74D52BB-491F-475B-AE72-E8CC296C6527}.Release|Any CPU.ActiveCfg = Release|Any CPU + {C74D52BB-491F-475B-AE72-E8CC296C6527}.Release|Any CPU.Build.0 = Release|Any CPU + {448398BA-496F-4CCD-93C9-B2271C8C6DB1}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {448398BA-496F-4CCD-93C9-B2271C8C6DB1}.Debug|Any CPU.Build.0 = Debug|Any CPU + {448398BA-496F-4CCD-93C9-B2271C8C6DB1}.Release|Any CPU.ActiveCfg = Release|Any CPU + {448398BA-496F-4CCD-93C9-B2271C8C6DB1}.Release|Any CPU.Build.0 = Release|Any CPU + {2CB74D97-F7F9-4920-85FA-38F539BF3949}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {2CB74D97-F7F9-4920-85FA-38F539BF3949}.Debug|Any CPU.Build.0 = Debug|Any CPU + {2CB74D97-F7F9-4920-85FA-38F539BF3949}.Release|Any CPU.ActiveCfg = Release|Any CPU + {2CB74D97-F7F9-4920-85FA-38F539BF3949}.Release|Any CPU.Build.0 = Release|Any CPU + {225EFEC4-B5D6-4886-864A-C0CD23DA709A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {225EFEC4-B5D6-4886-864A-C0CD23DA709A}.Debug|Any CPU.Build.0 = Debug|Any CPU + {225EFEC4-B5D6-4886-864A-C0CD23DA709A}.Release|Any CPU.ActiveCfg = Release|Any CPU + {225EFEC4-B5D6-4886-864A-C0CD23DA709A}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(NestedProjects) = preSolution + {20D4431B-5013-45F1-9AF0-47C2CE084D87} = {BD99560F-E175-44CE-B384-BDF4515C7DB6} + {C74D52BB-491F-475B-AE72-E8CC296C6527} = {BD99560F-E175-44CE-B384-BDF4515C7DB6} + {448398BA-496F-4CCD-93C9-B2271C8C6DB1} = {BD99560F-E175-44CE-B384-BDF4515C7DB6} + {2CB74D97-F7F9-4920-85FA-38F539BF3949} = {BD99560F-E175-44CE-B384-BDF4515C7DB6} + {225EFEC4-B5D6-4886-864A-C0CD23DA709A} = {BD99560F-E175-44CE-B384-BDF4515C7DB6} + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {926D1FBB-9A45-4C4B-9FDD-9CC960F32CA7} + EndGlobalSection +EndGlobal diff --git a/src/Services/smart-subscriber/O2NextGen.SmartSubscriber.Api/Controllers/ValuesController.cs b/src/Services/smart-subscriber/O2NextGen.SmartSubscriber.Api/Controllers/ValuesController.cs new file mode 100644 index 00000000..a2714982 --- /dev/null +++ b/src/Services/smart-subscriber/O2NextGen.SmartSubscriber.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.SmartSubscriber.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/smart-subscriber/O2NextGen.SmartSubscriber.Api/O2NextGen.SmartSubscriber.Api.csproj b/src/Services/smart-subscriber/O2NextGen.SmartSubscriber.Api/O2NextGen.SmartSubscriber.Api.csproj new file mode 100644 index 00000000..ffe2b91d --- /dev/null +++ b/src/Services/smart-subscriber/O2NextGen.SmartSubscriber.Api/O2NextGen.SmartSubscriber.Api.csproj @@ -0,0 +1,16 @@ + + + + netcoreapp2.1 + + + + + + + + + + + + diff --git a/src/Services/smart-subscriber/O2NextGen.SmartSubscriber.Api/Program.cs b/src/Services/smart-subscriber/O2NextGen.SmartSubscriber.Api/Program.cs new file mode 100644 index 00000000..6b98ae99 --- /dev/null +++ b/src/Services/smart-subscriber/O2NextGen.SmartSubscriber.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.SmartSubscriber.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/smart-subscriber/O2NextGen.SmartSubscriber.Api/Properties/launchSettings.json b/src/Services/smart-subscriber/O2NextGen.SmartSubscriber.Api/Properties/launchSettings.json new file mode 100644 index 00000000..7841e3c7 --- /dev/null +++ b/src/Services/smart-subscriber/O2NextGen.SmartSubscriber.Api/Properties/launchSettings.json @@ -0,0 +1,30 @@ +{ + "$schema": "http://json.schemastore.org/launchsettings.json", + "iisSettings": { + "windowsAuthentication": false, + "anonymousAuthentication": true, + "iisExpress": { + "applicationUrl": "http://localhost:63990", + "sslPort": 44396 + } + }, + "profiles": { + "IIS Express": { + "commandName": "IISExpress", + "launchBrowser": true, + "launchUrl": "api/values", + "environmentVariables": { + "ASPNETCORE_ENVIRONMENT": "Development" + } + }, + "O2NextGen.SmartSubscriber.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/smart-subscriber/O2NextGen.SmartSubscriber.Api/Startup.cs b/src/Services/smart-subscriber/O2NextGen.SmartSubscriber.Api/Startup.cs new file mode 100644 index 00000000..f86d1c50 --- /dev/null +++ b/src/Services/smart-subscriber/O2NextGen.SmartSubscriber.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.SmartSubscriber.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/smart-subscriber/O2NextGen.SmartSubscriber.Api/appsettings.Development.json b/src/Services/smart-subscriber/O2NextGen.SmartSubscriber.Api/appsettings.Development.json new file mode 100644 index 00000000..e203e940 --- /dev/null +++ b/src/Services/smart-subscriber/O2NextGen.SmartSubscriber.Api/appsettings.Development.json @@ -0,0 +1,9 @@ +{ + "Logging": { + "LogLevel": { + "Default": "Debug", + "System": "Information", + "Microsoft": "Information" + } + } +} diff --git a/src/Services/smart-subscriber/O2NextGen.SmartSubscriber.Api/appsettings.json b/src/Services/smart-subscriber/O2NextGen.SmartSubscriber.Api/appsettings.json new file mode 100644 index 00000000..def9159a --- /dev/null +++ b/src/Services/smart-subscriber/O2NextGen.SmartSubscriber.Api/appsettings.json @@ -0,0 +1,8 @@ +{ + "Logging": { + "LogLevel": { + "Default": "Warning" + } + }, + "AllowedHosts": "*" +} diff --git a/src/Services/smart-subscriber/O2NextGen.SmartSubscriber.Business/Class1.cs b/src/Services/smart-subscriber/O2NextGen.SmartSubscriber.Business/Class1.cs new file mode 100644 index 00000000..377d9ba6 --- /dev/null +++ b/src/Services/smart-subscriber/O2NextGen.SmartSubscriber.Business/Class1.cs @@ -0,0 +1,8 @@ +using System; + +namespace O2NextGen.SmartSubscriber.Business +{ + public class Class1 + { + } +} diff --git a/src/Services/smart-subscriber/O2NextGen.SmartSubscriber.Business/O2NextGen.SmartSubscriber.Business.csproj b/src/Services/smart-subscriber/O2NextGen.SmartSubscriber.Business/O2NextGen.SmartSubscriber.Business.csproj new file mode 100644 index 00000000..cb631906 --- /dev/null +++ b/src/Services/smart-subscriber/O2NextGen.SmartSubscriber.Business/O2NextGen.SmartSubscriber.Business.csproj @@ -0,0 +1,7 @@ + + + + netcoreapp3.1 + + + diff --git a/src/Services/smart-subscriber/O2NextGen.SmartSubscriber.Data/Class1.cs b/src/Services/smart-subscriber/O2NextGen.SmartSubscriber.Data/Class1.cs new file mode 100644 index 00000000..80df6caf --- /dev/null +++ b/src/Services/smart-subscriber/O2NextGen.SmartSubscriber.Data/Class1.cs @@ -0,0 +1,8 @@ +using System; + +namespace O2NextGen.SmartSubscriber.Data +{ + public class Class1 + { + } +} diff --git a/src/Services/smart-subscriber/O2NextGen.SmartSubscriber.Data/O2NextGen.SmartSubscriber.Data.csproj b/src/Services/smart-subscriber/O2NextGen.SmartSubscriber.Data/O2NextGen.SmartSubscriber.Data.csproj new file mode 100644 index 00000000..cb631906 --- /dev/null +++ b/src/Services/smart-subscriber/O2NextGen.SmartSubscriber.Data/O2NextGen.SmartSubscriber.Data.csproj @@ -0,0 +1,7 @@ + + + + netcoreapp3.1 + + + diff --git a/src/Services/smart-subscriber/O2NextGen.SmartSubscriber.Impl/Class1.cs b/src/Services/smart-subscriber/O2NextGen.SmartSubscriber.Impl/Class1.cs new file mode 100644 index 00000000..49420c38 --- /dev/null +++ b/src/Services/smart-subscriber/O2NextGen.SmartSubscriber.Impl/Class1.cs @@ -0,0 +1,8 @@ +using System; + +namespace O2NextGen.SmartSubscriber.Impl +{ + public class Class1 + { + } +} diff --git a/src/Services/smart-subscriber/O2NextGen.SmartSubscriber.Impl/O2NextGen.SmartSubscriber.Impl.csproj b/src/Services/smart-subscriber/O2NextGen.SmartSubscriber.Impl/O2NextGen.SmartSubscriber.Impl.csproj new file mode 100644 index 00000000..86ea3bbe --- /dev/null +++ b/src/Services/smart-subscriber/O2NextGen.SmartSubscriber.Impl/O2NextGen.SmartSubscriber.Impl.csproj @@ -0,0 +1,7 @@ + + + + netcoreapp2.1 + + + diff --git a/src/Services/smart-subscriber/Tests/IntegrationTests.O2NextGen.SmartSubscriber.Api/IntegrationTests.O2NextGen.SmartSubscriber.Api.csproj b/src/Services/smart-subscriber/Tests/IntegrationTests.O2NextGen.SmartSubscriber.Api/IntegrationTests.O2NextGen.SmartSubscriber.Api.csproj new file mode 100644 index 00000000..9c2aad77 --- /dev/null +++ b/src/Services/smart-subscriber/Tests/IntegrationTests.O2NextGen.SmartSubscriber.Api/IntegrationTests.O2NextGen.SmartSubscriber.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/smart-subscriber/Tests/IntegrationTests.O2NextGen.SmartSubscriber.Api/UnitTest1.cs b/src/Services/smart-subscriber/Tests/IntegrationTests.O2NextGen.SmartSubscriber.Api/UnitTest1.cs new file mode 100644 index 00000000..97027df2 --- /dev/null +++ b/src/Services/smart-subscriber/Tests/IntegrationTests.O2NextGen.SmartSubscriber.Api/UnitTest1.cs @@ -0,0 +1,14 @@ +using System; +using Xunit; + +namespace IntegrationTests.O2NextGen.SmartSubscriber.Api +{ + public class UnitTest1 + { + [Fact] + public void Test1() + { + + } + } +} diff --git a/src/Services/smart-subscriber/Tests/Tests.O2NextGen.SmartSubscriber.Api/Tests.O2NextGen.SmartSubscriber.Api.csproj b/src/Services/smart-subscriber/Tests/Tests.O2NextGen.SmartSubscriber.Api/Tests.O2NextGen.SmartSubscriber.Api.csproj new file mode 100644 index 00000000..d7b45d57 --- /dev/null +++ b/src/Services/smart-subscriber/Tests/Tests.O2NextGen.SmartSubscriber.Api/Tests.O2NextGen.SmartSubscriber.Api.csproj @@ -0,0 +1,16 @@ + + + + netcoreapp2.1 + + false + + + + + + + + + + diff --git a/src/Services/smart-subscriber/Tests/Tests.O2NextGen.SmartSubscriber.Api/UnitTest1.cs b/src/Services/smart-subscriber/Tests/Tests.O2NextGen.SmartSubscriber.Api/UnitTest1.cs new file mode 100644 index 00000000..de715567 --- /dev/null +++ b/src/Services/smart-subscriber/Tests/Tests.O2NextGen.SmartSubscriber.Api/UnitTest1.cs @@ -0,0 +1,18 @@ +using NUnit.Framework; + +namespace Tests.O2NextGen.SmartSubscriber.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/smart-subscriber/Tests/Tests.O2NextGen.SmartSubscriber.Business/Tests.O2NextGen.SmartSubscriber.Business.csproj b/src/Services/smart-subscriber/Tests/Tests.O2NextGen.SmartSubscriber.Business/Tests.O2NextGen.SmartSubscriber.Business.csproj new file mode 100644 index 00000000..d7b45d57 --- /dev/null +++ b/src/Services/smart-subscriber/Tests/Tests.O2NextGen.SmartSubscriber.Business/Tests.O2NextGen.SmartSubscriber.Business.csproj @@ -0,0 +1,16 @@ + + + + netcoreapp2.1 + + false + + + + + + + + + + diff --git a/src/Services/smart-subscriber/Tests/Tests.O2NextGen.SmartSubscriber.Business/UnitTest1.cs b/src/Services/smart-subscriber/Tests/Tests.O2NextGen.SmartSubscriber.Business/UnitTest1.cs new file mode 100644 index 00000000..6818e9d3 --- /dev/null +++ b/src/Services/smart-subscriber/Tests/Tests.O2NextGen.SmartSubscriber.Business/UnitTest1.cs @@ -0,0 +1,18 @@ +using NUnit.Framework; + +namespace Tests.O2NextGen.SmartSubscriber.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/smart-subscriber/Tests/Tests.O2NextGen.SmartSubscriber.Data/Tests.O2NextGen.SmartSubscriber.Data.csproj b/src/Services/smart-subscriber/Tests/Tests.O2NextGen.SmartSubscriber.Data/Tests.O2NextGen.SmartSubscriber.Data.csproj new file mode 100644 index 00000000..d7b45d57 --- /dev/null +++ b/src/Services/smart-subscriber/Tests/Tests.O2NextGen.SmartSubscriber.Data/Tests.O2NextGen.SmartSubscriber.Data.csproj @@ -0,0 +1,16 @@ + + + + netcoreapp2.1 + + false + + + + + + + + + + diff --git a/src/Services/smart-subscriber/Tests/Tests.O2NextGen.SmartSubscriber.Data/UnitTest1.cs b/src/Services/smart-subscriber/Tests/Tests.O2NextGen.SmartSubscriber.Data/UnitTest1.cs new file mode 100644 index 00000000..dbe5604a --- /dev/null +++ b/src/Services/smart-subscriber/Tests/Tests.O2NextGen.SmartSubscriber.Data/UnitTest1.cs @@ -0,0 +1,18 @@ +using NUnit.Framework; + +namespace Tests.O2NextGen.SmartSubscriber.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/smart-subscriber/Tests/Tests.O2NextGen.SmartSubscriber.Impl/Tests.O2NextGen.SmartSubscriber.Impl.csproj b/src/Services/smart-subscriber/Tests/Tests.O2NextGen.SmartSubscriber.Impl/Tests.O2NextGen.SmartSubscriber.Impl.csproj new file mode 100644 index 00000000..d7b45d57 --- /dev/null +++ b/src/Services/smart-subscriber/Tests/Tests.O2NextGen.SmartSubscriber.Impl/Tests.O2NextGen.SmartSubscriber.Impl.csproj @@ -0,0 +1,16 @@ + + + + netcoreapp2.1 + + false + + + + + + + + + + diff --git a/src/Services/smart-subscriber/Tests/Tests.O2NextGen.SmartSubscriber.Impl/UnitTest1.cs b/src/Services/smart-subscriber/Tests/Tests.O2NextGen.SmartSubscriber.Impl/UnitTest1.cs new file mode 100644 index 00000000..9f3623e2 --- /dev/null +++ b/src/Services/smart-subscriber/Tests/Tests.O2NextGen.SmartSubscriber.Impl/UnitTest1.cs @@ -0,0 +1,18 @@ +using NUnit.Framework; + +namespace Tests.O2NextGen.SmartSubscriber.Impl +{ + public class Tests + { + [SetUp] + public void Setup() + { + } + + [Test] + public void Test1() + { + Assert.Pass(); + } + } +} \ No newline at end of file From 226048344a0f1c2aea86c11bf149831440a846db Mon Sep 17 00:00:00 2001 From: Denis Prokhorchik Date: Sat, 26 Mar 2022 23:48:58 +0300 Subject: [PATCH 2/4] chore(issue-91): code cleanup --- .../Controllers/ValuesController.cs | 3 --- .../O2NextGen.SmartSubscriber.Api/Program.cs | 7 ------- .../O2NextGen.SmartSubscriber.Api/Startup.cs | 7 ------- .../O2NextGen.SmartSubscriber.Business/Class1.cs | 4 +--- .../O2NextGen.SmartSubscriber.Data/Class1.cs | 4 +--- .../O2NextGen.SmartSubscriber.Impl/Class1.cs | 4 +--- .../UnitTest1.cs | 1 - 7 files changed, 3 insertions(+), 27 deletions(-) diff --git a/src/Services/smart-subscriber/O2NextGen.SmartSubscriber.Api/Controllers/ValuesController.cs b/src/Services/smart-subscriber/O2NextGen.SmartSubscriber.Api/Controllers/ValuesController.cs index a2714982..fdf58816 100644 --- a/src/Services/smart-subscriber/O2NextGen.SmartSubscriber.Api/Controllers/ValuesController.cs +++ b/src/Services/smart-subscriber/O2NextGen.SmartSubscriber.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.SmartSubscriber.Api.Controllers { diff --git a/src/Services/smart-subscriber/O2NextGen.SmartSubscriber.Api/Program.cs b/src/Services/smart-subscriber/O2NextGen.SmartSubscriber.Api/Program.cs index 6b98ae99..a2452206 100644 --- a/src/Services/smart-subscriber/O2NextGen.SmartSubscriber.Api/Program.cs +++ b/src/Services/smart-subscriber/O2NextGen.SmartSubscriber.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.SmartSubscriber.Api { diff --git a/src/Services/smart-subscriber/O2NextGen.SmartSubscriber.Api/Startup.cs b/src/Services/smart-subscriber/O2NextGen.SmartSubscriber.Api/Startup.cs index f86d1c50..248e3987 100644 --- a/src/Services/smart-subscriber/O2NextGen.SmartSubscriber.Api/Startup.cs +++ b/src/Services/smart-subscriber/O2NextGen.SmartSubscriber.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.SmartSubscriber.Api { diff --git a/src/Services/smart-subscriber/O2NextGen.SmartSubscriber.Business/Class1.cs b/src/Services/smart-subscriber/O2NextGen.SmartSubscriber.Business/Class1.cs index 377d9ba6..79d72ac5 100644 --- a/src/Services/smart-subscriber/O2NextGen.SmartSubscriber.Business/Class1.cs +++ b/src/Services/smart-subscriber/O2NextGen.SmartSubscriber.Business/Class1.cs @@ -1,6 +1,4 @@ -using System; - -namespace O2NextGen.SmartSubscriber.Business +namespace O2NextGen.SmartSubscriber.Business { public class Class1 { diff --git a/src/Services/smart-subscriber/O2NextGen.SmartSubscriber.Data/Class1.cs b/src/Services/smart-subscriber/O2NextGen.SmartSubscriber.Data/Class1.cs index 80df6caf..01283afb 100644 --- a/src/Services/smart-subscriber/O2NextGen.SmartSubscriber.Data/Class1.cs +++ b/src/Services/smart-subscriber/O2NextGen.SmartSubscriber.Data/Class1.cs @@ -1,6 +1,4 @@ -using System; - -namespace O2NextGen.SmartSubscriber.Data +namespace O2NextGen.SmartSubscriber.Data { public class Class1 { diff --git a/src/Services/smart-subscriber/O2NextGen.SmartSubscriber.Impl/Class1.cs b/src/Services/smart-subscriber/O2NextGen.SmartSubscriber.Impl/Class1.cs index 49420c38..d32335c1 100644 --- a/src/Services/smart-subscriber/O2NextGen.SmartSubscriber.Impl/Class1.cs +++ b/src/Services/smart-subscriber/O2NextGen.SmartSubscriber.Impl/Class1.cs @@ -1,6 +1,4 @@ -using System; - -namespace O2NextGen.SmartSubscriber.Impl +namespace O2NextGen.SmartSubscriber.Impl { public class Class1 { diff --git a/src/Services/smart-subscriber/Tests/IntegrationTests.O2NextGen.SmartSubscriber.Api/UnitTest1.cs b/src/Services/smart-subscriber/Tests/IntegrationTests.O2NextGen.SmartSubscriber.Api/UnitTest1.cs index 97027df2..5e841805 100644 --- a/src/Services/smart-subscriber/Tests/IntegrationTests.O2NextGen.SmartSubscriber.Api/UnitTest1.cs +++ b/src/Services/smart-subscriber/Tests/IntegrationTests.O2NextGen.SmartSubscriber.Api/UnitTest1.cs @@ -1,4 +1,3 @@ -using System; using Xunit; namespace IntegrationTests.O2NextGen.SmartSubscriber.Api From 62828346bf5dfc68c1003053223a241b5663caa6 Mon Sep 17 00:00:00 2001 From: Denis Prokhorchik Date: Sat, 26 Mar 2022 23:51:25 +0300 Subject: [PATCH 3/4] feat(issue-91): update .net core 2.1 to 2.2 for projects of smart-subscriber --- .../O2NextGen.SmartSubscriber.Api.csproj | 2 +- .../O2NextGen.SmartSubscriber.Business.csproj | 4 ++-- .../O2NextGen.SmartSubscriber.Data.csproj | 2 +- .../O2NextGen.SmartSubscriber.Impl.csproj | 2 +- .../IntegrationTests.O2NextGen.SmartSubscriber.Api.csproj | 2 +- .../Tests.O2NextGen.SmartSubscriber.Api.csproj | 6 +++--- .../Tests.O2NextGen.SmartSubscriber.Business.csproj | 4 ++-- .../Tests.O2NextGen.SmartSubscriber.Data.csproj | 6 +++--- .../Tests.O2NextGen.SmartSubscriber.Impl.csproj | 6 +++--- 9 files changed, 17 insertions(+), 17 deletions(-) diff --git a/src/Services/smart-subscriber/O2NextGen.SmartSubscriber.Api/O2NextGen.SmartSubscriber.Api.csproj b/src/Services/smart-subscriber/O2NextGen.SmartSubscriber.Api/O2NextGen.SmartSubscriber.Api.csproj index ffe2b91d..79d79f63 100644 --- a/src/Services/smart-subscriber/O2NextGen.SmartSubscriber.Api/O2NextGen.SmartSubscriber.Api.csproj +++ b/src/Services/smart-subscriber/O2NextGen.SmartSubscriber.Api/O2NextGen.SmartSubscriber.Api.csproj @@ -1,7 +1,7 @@ - netcoreapp2.1 + netcoreapp2.2 diff --git a/src/Services/smart-subscriber/O2NextGen.SmartSubscriber.Business/O2NextGen.SmartSubscriber.Business.csproj b/src/Services/smart-subscriber/O2NextGen.SmartSubscriber.Business/O2NextGen.SmartSubscriber.Business.csproj index cb631906..2bd48b21 100644 --- a/src/Services/smart-subscriber/O2NextGen.SmartSubscriber.Business/O2NextGen.SmartSubscriber.Business.csproj +++ b/src/Services/smart-subscriber/O2NextGen.SmartSubscriber.Business/O2NextGen.SmartSubscriber.Business.csproj @@ -1,7 +1,7 @@ - + - netcoreapp3.1 + netcoreapp2.2 diff --git a/src/Services/smart-subscriber/O2NextGen.SmartSubscriber.Data/O2NextGen.SmartSubscriber.Data.csproj b/src/Services/smart-subscriber/O2NextGen.SmartSubscriber.Data/O2NextGen.SmartSubscriber.Data.csproj index cb631906..c16c6d5b 100644 --- a/src/Services/smart-subscriber/O2NextGen.SmartSubscriber.Data/O2NextGen.SmartSubscriber.Data.csproj +++ b/src/Services/smart-subscriber/O2NextGen.SmartSubscriber.Data/O2NextGen.SmartSubscriber.Data.csproj @@ -1,7 +1,7 @@ - netcoreapp3.1 + netcoreapp2.2 diff --git a/src/Services/smart-subscriber/O2NextGen.SmartSubscriber.Impl/O2NextGen.SmartSubscriber.Impl.csproj b/src/Services/smart-subscriber/O2NextGen.SmartSubscriber.Impl/O2NextGen.SmartSubscriber.Impl.csproj index 86ea3bbe..c16c6d5b 100644 --- a/src/Services/smart-subscriber/O2NextGen.SmartSubscriber.Impl/O2NextGen.SmartSubscriber.Impl.csproj +++ b/src/Services/smart-subscriber/O2NextGen.SmartSubscriber.Impl/O2NextGen.SmartSubscriber.Impl.csproj @@ -1,7 +1,7 @@ - netcoreapp2.1 + netcoreapp2.2 diff --git a/src/Services/smart-subscriber/Tests/IntegrationTests.O2NextGen.SmartSubscriber.Api/IntegrationTests.O2NextGen.SmartSubscriber.Api.csproj b/src/Services/smart-subscriber/Tests/IntegrationTests.O2NextGen.SmartSubscriber.Api/IntegrationTests.O2NextGen.SmartSubscriber.Api.csproj index 9c2aad77..08ce6023 100644 --- a/src/Services/smart-subscriber/Tests/IntegrationTests.O2NextGen.SmartSubscriber.Api/IntegrationTests.O2NextGen.SmartSubscriber.Api.csproj +++ b/src/Services/smart-subscriber/Tests/IntegrationTests.O2NextGen.SmartSubscriber.Api/IntegrationTests.O2NextGen.SmartSubscriber.Api.csproj @@ -1,7 +1,7 @@ - netcoreapp2.1 + netcoreapp2.2 false diff --git a/src/Services/smart-subscriber/Tests/Tests.O2NextGen.SmartSubscriber.Api/Tests.O2NextGen.SmartSubscriber.Api.csproj b/src/Services/smart-subscriber/Tests/Tests.O2NextGen.SmartSubscriber.Api/Tests.O2NextGen.SmartSubscriber.Api.csproj index d7b45d57..15e18f8c 100644 --- a/src/Services/smart-subscriber/Tests/Tests.O2NextGen.SmartSubscriber.Api/Tests.O2NextGen.SmartSubscriber.Api.csproj +++ b/src/Services/smart-subscriber/Tests/Tests.O2NextGen.SmartSubscriber.Api/Tests.O2NextGen.SmartSubscriber.Api.csproj @@ -1,13 +1,13 @@ - + - netcoreapp2.1 + netcoreapp2.2 false - + diff --git a/src/Services/smart-subscriber/Tests/Tests.O2NextGen.SmartSubscriber.Business/Tests.O2NextGen.SmartSubscriber.Business.csproj b/src/Services/smart-subscriber/Tests/Tests.O2NextGen.SmartSubscriber.Business/Tests.O2NextGen.SmartSubscriber.Business.csproj index d7b45d57..f1f19a17 100644 --- a/src/Services/smart-subscriber/Tests/Tests.O2NextGen.SmartSubscriber.Business/Tests.O2NextGen.SmartSubscriber.Business.csproj +++ b/src/Services/smart-subscriber/Tests/Tests.O2NextGen.SmartSubscriber.Business/Tests.O2NextGen.SmartSubscriber.Business.csproj @@ -1,13 +1,13 @@ - netcoreapp2.1 + netcoreapp2.2 false - + diff --git a/src/Services/smart-subscriber/Tests/Tests.O2NextGen.SmartSubscriber.Data/Tests.O2NextGen.SmartSubscriber.Data.csproj b/src/Services/smart-subscriber/Tests/Tests.O2NextGen.SmartSubscriber.Data/Tests.O2NextGen.SmartSubscriber.Data.csproj index d7b45d57..15e18f8c 100644 --- a/src/Services/smart-subscriber/Tests/Tests.O2NextGen.SmartSubscriber.Data/Tests.O2NextGen.SmartSubscriber.Data.csproj +++ b/src/Services/smart-subscriber/Tests/Tests.O2NextGen.SmartSubscriber.Data/Tests.O2NextGen.SmartSubscriber.Data.csproj @@ -1,13 +1,13 @@ - + - netcoreapp2.1 + netcoreapp2.2 false - + diff --git a/src/Services/smart-subscriber/Tests/Tests.O2NextGen.SmartSubscriber.Impl/Tests.O2NextGen.SmartSubscriber.Impl.csproj b/src/Services/smart-subscriber/Tests/Tests.O2NextGen.SmartSubscriber.Impl/Tests.O2NextGen.SmartSubscriber.Impl.csproj index d7b45d57..15e18f8c 100644 --- a/src/Services/smart-subscriber/Tests/Tests.O2NextGen.SmartSubscriber.Impl/Tests.O2NextGen.SmartSubscriber.Impl.csproj +++ b/src/Services/smart-subscriber/Tests/Tests.O2NextGen.SmartSubscriber.Impl/Tests.O2NextGen.SmartSubscriber.Impl.csproj @@ -1,13 +1,13 @@ - + - netcoreapp2.1 + netcoreapp2.2 false - + From b5ad1c2779f6737b9ebd11719fd8828c247d35d7 Mon Sep 17 00:00:00 2001 From: Denis Prokhorchik Date: Sat, 26 Mar 2022 23:52:30 +0300 Subject: [PATCH 4/4] feat(issue-91): update main project of smart-subscriber --- .../O2NextGen.SmartSubscriber.Api.csproj | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/Services/smart-subscriber/O2NextGen.SmartSubscriber.Api/O2NextGen.SmartSubscriber.Api.csproj b/src/Services/smart-subscriber/O2NextGen.SmartSubscriber.Api/O2NextGen.SmartSubscriber.Api.csproj index 79d79f63..0c05084e 100644 --- a/src/Services/smart-subscriber/O2NextGen.SmartSubscriber.Api/O2NextGen.SmartSubscriber.Api.csproj +++ b/src/Services/smart-subscriber/O2NextGen.SmartSubscriber.Api/O2NextGen.SmartSubscriber.Api.csproj @@ -13,4 +13,10 @@ + + + + + +