From f6d854d4fbb96fc6524db5cd655f807b477c6165 Mon Sep 17 00:00:00 2001 From: Denis Prokhorchik Date: Sat, 26 Mar 2022 23:26:16 +0300 Subject: [PATCH 1/3] feat(issue-176): add go-event service --- .../go-event/O2NextGen.GoEvent.Api.sln | 82 +++++++++++++++++++ .../Controllers/ValuesController.cs | 45 ++++++++++ .../O2NextGen.GoEvent.Api.csproj | 16 ++++ .../go-event/O2NextGen.GoEvent.Api/Program.cs | 24 ++++++ .../Properties/launchSettings.json | 30 +++++++ .../go-event/O2NextGen.GoEvent.Api/Startup.cs | 47 +++++++++++ .../appsettings.Development.json | 9 ++ .../O2NextGen.GoEvent.Api/appsettings.json | 8 ++ .../O2NextGen.GoEvent.Business/Class1.cs | 8 ++ .../O2NextGen.GoEvent.Business.csproj | 7 ++ .../go-event/O2NextGen.GoEvent.Data/Class1.cs | 8 ++ .../O2NextGen.GoEvent.Data.csproj | 7 ++ .../go-event/O2NextGen.GoEvent.Impl/Class1.cs | 8 ++ .../O2NextGen.GoEvent.Impl.csproj | 7 ++ ...egrationTests.O2NextGen.GoEvent.Api.csproj | 22 +++++ .../UnitTest1.cs | 14 ++++ .../Tests.O2NextGen.GoEvent.Api.csproj | 16 ++++ .../Tests.O2NextGen.GoEvent.Api/UnitTest1.cs | 18 ++++ .../Tests.O2NextGen.GoEvent.Business.csproj | 16 ++++ .../UnitTest1.cs | 18 ++++ .../Tests.O2NextGen.GoEvent.Data.csproj | 16 ++++ .../Tests.O2NextGen.GoEvent.Data/UnitTest1.cs | 18 ++++ .../Tests.O2NextGen.GoEvent.Impl.csproj | 16 ++++ .../Tests.O2NextGen.GoEvent.Impl/UnitTest1.cs | 18 ++++ 24 files changed, 478 insertions(+) create mode 100644 src/Services/go-event/O2NextGen.GoEvent.Api.sln create mode 100644 src/Services/go-event/O2NextGen.GoEvent.Api/Controllers/ValuesController.cs create mode 100644 src/Services/go-event/O2NextGen.GoEvent.Api/O2NextGen.GoEvent.Api.csproj create mode 100644 src/Services/go-event/O2NextGen.GoEvent.Api/Program.cs create mode 100644 src/Services/go-event/O2NextGen.GoEvent.Api/Properties/launchSettings.json create mode 100644 src/Services/go-event/O2NextGen.GoEvent.Api/Startup.cs create mode 100644 src/Services/go-event/O2NextGen.GoEvent.Api/appsettings.Development.json create mode 100644 src/Services/go-event/O2NextGen.GoEvent.Api/appsettings.json create mode 100644 src/Services/go-event/O2NextGen.GoEvent.Business/Class1.cs create mode 100644 src/Services/go-event/O2NextGen.GoEvent.Business/O2NextGen.GoEvent.Business.csproj create mode 100644 src/Services/go-event/O2NextGen.GoEvent.Data/Class1.cs create mode 100644 src/Services/go-event/O2NextGen.GoEvent.Data/O2NextGen.GoEvent.Data.csproj create mode 100644 src/Services/go-event/O2NextGen.GoEvent.Impl/Class1.cs create mode 100644 src/Services/go-event/O2NextGen.GoEvent.Impl/O2NextGen.GoEvent.Impl.csproj create mode 100644 src/Services/go-event/Tests/IntegrationTests.O2NextGen.GoEvent.Api/IntegrationTests.O2NextGen.GoEvent.Api.csproj create mode 100644 src/Services/go-event/Tests/IntegrationTests.O2NextGen.GoEvent.Api/UnitTest1.cs create mode 100644 src/Services/go-event/Tests/Tests.O2NextGen.GoEvent.Api/Tests.O2NextGen.GoEvent.Api.csproj create mode 100644 src/Services/go-event/Tests/Tests.O2NextGen.GoEvent.Api/UnitTest1.cs create mode 100644 src/Services/go-event/Tests/Tests.O2NextGen.GoEvent.Business/Tests.O2NextGen.GoEvent.Business.csproj create mode 100644 src/Services/go-event/Tests/Tests.O2NextGen.GoEvent.Business/UnitTest1.cs create mode 100644 src/Services/go-event/Tests/Tests.O2NextGen.GoEvent.Data/Tests.O2NextGen.GoEvent.Data.csproj create mode 100644 src/Services/go-event/Tests/Tests.O2NextGen.GoEvent.Data/UnitTest1.cs create mode 100644 src/Services/go-event/Tests/Tests.O2NextGen.GoEvent.Impl/Tests.O2NextGen.GoEvent.Impl.csproj create mode 100644 src/Services/go-event/Tests/Tests.O2NextGen.GoEvent.Impl/UnitTest1.cs diff --git a/src/Services/go-event/O2NextGen.GoEvent.Api.sln b/src/Services/go-event/O2NextGen.GoEvent.Api.sln new file mode 100644 index 00000000..9cfd5475 --- /dev/null +++ b/src/Services/go-event/O2NextGen.GoEvent.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.GoEvent.Api", "O2NextGen.GoEvent.Api\O2NextGen.GoEvent.Api.csproj", "{FFBCB4B3-9F13-4429-8B2B-CFA203EDCC0B}" +EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "O2NextGen.GoEvent.Data", "O2NextGen.GoEvent.Data\O2NextGen.GoEvent.Data.csproj", "{128BEE44-DF42-4C1E-A713-C53F714E3467}" +EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "O2NextGen.GoEvent.Business", "O2NextGen.GoEvent.Business\O2NextGen.GoEvent.Business.csproj", "{977A9773-AA5C-4680-B31A-A9802234771F}" +EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "O2NextGen.GoEvent.Impl", "O2NextGen.GoEvent.Impl\O2NextGen.GoEvent.Impl.csproj", "{A5DCC75E-2546-454F-84CC-0ABFA5912E29}" +EndProject +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Tests", "Tests", "{8A20718D-D1D1-4374-BBAC-B19363EBF2C1}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Tests.O2NextGen.GoEvent.Api", "Tests\Tests.O2NextGen.GoEvent.Api\Tests.O2NextGen.GoEvent.Api.csproj", "{EDC7EE36-BFDC-4D7C-A0C9-D4DB6B0944F5}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Tests.O2NextGen.GoEvent.Data", "Tests\Tests.O2NextGen.GoEvent.Data\Tests.O2NextGen.GoEvent.Data.csproj", "{4E543CCC-7717-4B3A-81D0-12E605E6A6BC}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Tests.O2NextGen.GoEvent.Business", "Tests\Tests.O2NextGen.GoEvent.Business\Tests.O2NextGen.GoEvent.Business.csproj", "{6D5B87CC-F843-4808-9DFA-C947970C9F4F}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Tests.O2NextGen.GoEvent.Impl", "Tests\Tests.O2NextGen.GoEvent.Impl\Tests.O2NextGen.GoEvent.Impl.csproj", "{21335271-D439-4EE8-B321-7140CDDC3CB9}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "IntegrationTests.O2NextGen.GoEvent.Api", "Tests\IntegrationTests.O2NextGen.GoEvent.Api\IntegrationTests.O2NextGen.GoEvent.Api.csproj", "{C2F2DE5D-D2B9-4BD3-97D7-E9E6E721F06B}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {FFBCB4B3-9F13-4429-8B2B-CFA203EDCC0B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {FFBCB4B3-9F13-4429-8B2B-CFA203EDCC0B}.Debug|Any CPU.Build.0 = Debug|Any CPU + {FFBCB4B3-9F13-4429-8B2B-CFA203EDCC0B}.Release|Any CPU.ActiveCfg = Release|Any CPU + {FFBCB4B3-9F13-4429-8B2B-CFA203EDCC0B}.Release|Any CPU.Build.0 = Release|Any CPU + {128BEE44-DF42-4C1E-A713-C53F714E3467}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {128BEE44-DF42-4C1E-A713-C53F714E3467}.Debug|Any CPU.Build.0 = Debug|Any CPU + {128BEE44-DF42-4C1E-A713-C53F714E3467}.Release|Any CPU.ActiveCfg = Release|Any CPU + {128BEE44-DF42-4C1E-A713-C53F714E3467}.Release|Any CPU.Build.0 = Release|Any CPU + {977A9773-AA5C-4680-B31A-A9802234771F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {977A9773-AA5C-4680-B31A-A9802234771F}.Debug|Any CPU.Build.0 = Debug|Any CPU + {977A9773-AA5C-4680-B31A-A9802234771F}.Release|Any CPU.ActiveCfg = Release|Any CPU + {977A9773-AA5C-4680-B31A-A9802234771F}.Release|Any CPU.Build.0 = Release|Any CPU + {A5DCC75E-2546-454F-84CC-0ABFA5912E29}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {A5DCC75E-2546-454F-84CC-0ABFA5912E29}.Debug|Any CPU.Build.0 = Debug|Any CPU + {A5DCC75E-2546-454F-84CC-0ABFA5912E29}.Release|Any CPU.ActiveCfg = Release|Any CPU + {A5DCC75E-2546-454F-84CC-0ABFA5912E29}.Release|Any CPU.Build.0 = Release|Any CPU + {EDC7EE36-BFDC-4D7C-A0C9-D4DB6B0944F5}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {EDC7EE36-BFDC-4D7C-A0C9-D4DB6B0944F5}.Debug|Any CPU.Build.0 = Debug|Any CPU + {EDC7EE36-BFDC-4D7C-A0C9-D4DB6B0944F5}.Release|Any CPU.ActiveCfg = Release|Any CPU + {EDC7EE36-BFDC-4D7C-A0C9-D4DB6B0944F5}.Release|Any CPU.Build.0 = Release|Any CPU + {4E543CCC-7717-4B3A-81D0-12E605E6A6BC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {4E543CCC-7717-4B3A-81D0-12E605E6A6BC}.Debug|Any CPU.Build.0 = Debug|Any CPU + {4E543CCC-7717-4B3A-81D0-12E605E6A6BC}.Release|Any CPU.ActiveCfg = Release|Any CPU + {4E543CCC-7717-4B3A-81D0-12E605E6A6BC}.Release|Any CPU.Build.0 = Release|Any CPU + {6D5B87CC-F843-4808-9DFA-C947970C9F4F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {6D5B87CC-F843-4808-9DFA-C947970C9F4F}.Debug|Any CPU.Build.0 = Debug|Any CPU + {6D5B87CC-F843-4808-9DFA-C947970C9F4F}.Release|Any CPU.ActiveCfg = Release|Any CPU + {6D5B87CC-F843-4808-9DFA-C947970C9F4F}.Release|Any CPU.Build.0 = Release|Any CPU + {21335271-D439-4EE8-B321-7140CDDC3CB9}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {21335271-D439-4EE8-B321-7140CDDC3CB9}.Debug|Any CPU.Build.0 = Debug|Any CPU + {21335271-D439-4EE8-B321-7140CDDC3CB9}.Release|Any CPU.ActiveCfg = Release|Any CPU + {21335271-D439-4EE8-B321-7140CDDC3CB9}.Release|Any CPU.Build.0 = Release|Any CPU + {C2F2DE5D-D2B9-4BD3-97D7-E9E6E721F06B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {C2F2DE5D-D2B9-4BD3-97D7-E9E6E721F06B}.Debug|Any CPU.Build.0 = Debug|Any CPU + {C2F2DE5D-D2B9-4BD3-97D7-E9E6E721F06B}.Release|Any CPU.ActiveCfg = Release|Any CPU + {C2F2DE5D-D2B9-4BD3-97D7-E9E6E721F06B}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(NestedProjects) = preSolution + {EDC7EE36-BFDC-4D7C-A0C9-D4DB6B0944F5} = {8A20718D-D1D1-4374-BBAC-B19363EBF2C1} + {4E543CCC-7717-4B3A-81D0-12E605E6A6BC} = {8A20718D-D1D1-4374-BBAC-B19363EBF2C1} + {6D5B87CC-F843-4808-9DFA-C947970C9F4F} = {8A20718D-D1D1-4374-BBAC-B19363EBF2C1} + {21335271-D439-4EE8-B321-7140CDDC3CB9} = {8A20718D-D1D1-4374-BBAC-B19363EBF2C1} + {C2F2DE5D-D2B9-4BD3-97D7-E9E6E721F06B} = {8A20718D-D1D1-4374-BBAC-B19363EBF2C1} + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {CE580401-4E4D-4937-BEBC-2503D25E0EEC} + EndGlobalSection +EndGlobal diff --git a/src/Services/go-event/O2NextGen.GoEvent.Api/Controllers/ValuesController.cs b/src/Services/go-event/O2NextGen.GoEvent.Api/Controllers/ValuesController.cs new file mode 100644 index 00000000..3c35cdd5 --- /dev/null +++ b/src/Services/go-event/O2NextGen.GoEvent.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.GoEvent.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/go-event/O2NextGen.GoEvent.Api/O2NextGen.GoEvent.Api.csproj b/src/Services/go-event/O2NextGen.GoEvent.Api/O2NextGen.GoEvent.Api.csproj new file mode 100644 index 00000000..ffe2b91d --- /dev/null +++ b/src/Services/go-event/O2NextGen.GoEvent.Api/O2NextGen.GoEvent.Api.csproj @@ -0,0 +1,16 @@ + + + + netcoreapp2.1 + + + + + + + + + + + + diff --git a/src/Services/go-event/O2NextGen.GoEvent.Api/Program.cs b/src/Services/go-event/O2NextGen.GoEvent.Api/Program.cs new file mode 100644 index 00000000..a8a13527 --- /dev/null +++ b/src/Services/go-event/O2NextGen.GoEvent.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.GoEvent.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/go-event/O2NextGen.GoEvent.Api/Properties/launchSettings.json b/src/Services/go-event/O2NextGen.GoEvent.Api/Properties/launchSettings.json new file mode 100644 index 00000000..7c253baf --- /dev/null +++ b/src/Services/go-event/O2NextGen.GoEvent.Api/Properties/launchSettings.json @@ -0,0 +1,30 @@ +{ + "$schema": "http://json.schemastore.org/launchsettings.json", + "iisSettings": { + "windowsAuthentication": false, + "anonymousAuthentication": true, + "iisExpress": { + "applicationUrl": "http://localhost:24236", + "sslPort": 44335 + } + }, + "profiles": { + "IIS Express": { + "commandName": "IISExpress", + "launchBrowser": true, + "launchUrl": "api/values", + "environmentVariables": { + "ASPNETCORE_ENVIRONMENT": "Development" + } + }, + "O2NextGen.GoEvent.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/go-event/O2NextGen.GoEvent.Api/Startup.cs b/src/Services/go-event/O2NextGen.GoEvent.Api/Startup.cs new file mode 100644 index 00000000..9c6f6ad2 --- /dev/null +++ b/src/Services/go-event/O2NextGen.GoEvent.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.GoEvent.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/go-event/O2NextGen.GoEvent.Api/appsettings.Development.json b/src/Services/go-event/O2NextGen.GoEvent.Api/appsettings.Development.json new file mode 100644 index 00000000..e203e940 --- /dev/null +++ b/src/Services/go-event/O2NextGen.GoEvent.Api/appsettings.Development.json @@ -0,0 +1,9 @@ +{ + "Logging": { + "LogLevel": { + "Default": "Debug", + "System": "Information", + "Microsoft": "Information" + } + } +} diff --git a/src/Services/go-event/O2NextGen.GoEvent.Api/appsettings.json b/src/Services/go-event/O2NextGen.GoEvent.Api/appsettings.json new file mode 100644 index 00000000..def9159a --- /dev/null +++ b/src/Services/go-event/O2NextGen.GoEvent.Api/appsettings.json @@ -0,0 +1,8 @@ +{ + "Logging": { + "LogLevel": { + "Default": "Warning" + } + }, + "AllowedHosts": "*" +} diff --git a/src/Services/go-event/O2NextGen.GoEvent.Business/Class1.cs b/src/Services/go-event/O2NextGen.GoEvent.Business/Class1.cs new file mode 100644 index 00000000..b0d4d2d9 --- /dev/null +++ b/src/Services/go-event/O2NextGen.GoEvent.Business/Class1.cs @@ -0,0 +1,8 @@ +using System; + +namespace O2NextGen.GoEvent.Business +{ + public class Class1 + { + } +} diff --git a/src/Services/go-event/O2NextGen.GoEvent.Business/O2NextGen.GoEvent.Business.csproj b/src/Services/go-event/O2NextGen.GoEvent.Business/O2NextGen.GoEvent.Business.csproj new file mode 100644 index 00000000..86ea3bbe --- /dev/null +++ b/src/Services/go-event/O2NextGen.GoEvent.Business/O2NextGen.GoEvent.Business.csproj @@ -0,0 +1,7 @@ + + + + netcoreapp2.1 + + + diff --git a/src/Services/go-event/O2NextGen.GoEvent.Data/Class1.cs b/src/Services/go-event/O2NextGen.GoEvent.Data/Class1.cs new file mode 100644 index 00000000..c7714e0a --- /dev/null +++ b/src/Services/go-event/O2NextGen.GoEvent.Data/Class1.cs @@ -0,0 +1,8 @@ +using System; + +namespace O2NextGen.GoEvent.Data +{ + public class Class1 + { + } +} diff --git a/src/Services/go-event/O2NextGen.GoEvent.Data/O2NextGen.GoEvent.Data.csproj b/src/Services/go-event/O2NextGen.GoEvent.Data/O2NextGen.GoEvent.Data.csproj new file mode 100644 index 00000000..86ea3bbe --- /dev/null +++ b/src/Services/go-event/O2NextGen.GoEvent.Data/O2NextGen.GoEvent.Data.csproj @@ -0,0 +1,7 @@ + + + + netcoreapp2.1 + + + diff --git a/src/Services/go-event/O2NextGen.GoEvent.Impl/Class1.cs b/src/Services/go-event/O2NextGen.GoEvent.Impl/Class1.cs new file mode 100644 index 00000000..27c1cfbd --- /dev/null +++ b/src/Services/go-event/O2NextGen.GoEvent.Impl/Class1.cs @@ -0,0 +1,8 @@ +using System; + +namespace O2NextGen.GoEvent.Impl +{ + public class Class1 + { + } +} diff --git a/src/Services/go-event/O2NextGen.GoEvent.Impl/O2NextGen.GoEvent.Impl.csproj b/src/Services/go-event/O2NextGen.GoEvent.Impl/O2NextGen.GoEvent.Impl.csproj new file mode 100644 index 00000000..86ea3bbe --- /dev/null +++ b/src/Services/go-event/O2NextGen.GoEvent.Impl/O2NextGen.GoEvent.Impl.csproj @@ -0,0 +1,7 @@ + + + + netcoreapp2.1 + + + diff --git a/src/Services/go-event/Tests/IntegrationTests.O2NextGen.GoEvent.Api/IntegrationTests.O2NextGen.GoEvent.Api.csproj b/src/Services/go-event/Tests/IntegrationTests.O2NextGen.GoEvent.Api/IntegrationTests.O2NextGen.GoEvent.Api.csproj new file mode 100644 index 00000000..9c2aad77 --- /dev/null +++ b/src/Services/go-event/Tests/IntegrationTests.O2NextGen.GoEvent.Api/IntegrationTests.O2NextGen.GoEvent.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/go-event/Tests/IntegrationTests.O2NextGen.GoEvent.Api/UnitTest1.cs b/src/Services/go-event/Tests/IntegrationTests.O2NextGen.GoEvent.Api/UnitTest1.cs new file mode 100644 index 00000000..05f87756 --- /dev/null +++ b/src/Services/go-event/Tests/IntegrationTests.O2NextGen.GoEvent.Api/UnitTest1.cs @@ -0,0 +1,14 @@ +using System; +using Xunit; + +namespace IntegrationTests.O2NextGen.GoEvent.Api +{ + public class UnitTest1 + { + [Fact] + public void Test1() + { + + } + } +} diff --git a/src/Services/go-event/Tests/Tests.O2NextGen.GoEvent.Api/Tests.O2NextGen.GoEvent.Api.csproj b/src/Services/go-event/Tests/Tests.O2NextGen.GoEvent.Api/Tests.O2NextGen.GoEvent.Api.csproj new file mode 100644 index 00000000..d7b45d57 --- /dev/null +++ b/src/Services/go-event/Tests/Tests.O2NextGen.GoEvent.Api/Tests.O2NextGen.GoEvent.Api.csproj @@ -0,0 +1,16 @@ + + + + netcoreapp2.1 + + false + + + + + + + + + + diff --git a/src/Services/go-event/Tests/Tests.O2NextGen.GoEvent.Api/UnitTest1.cs b/src/Services/go-event/Tests/Tests.O2NextGen.GoEvent.Api/UnitTest1.cs new file mode 100644 index 00000000..225588a2 --- /dev/null +++ b/src/Services/go-event/Tests/Tests.O2NextGen.GoEvent.Api/UnitTest1.cs @@ -0,0 +1,18 @@ +using NUnit.Framework; + +namespace Tests.O2NextGen.GoEvent.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/go-event/Tests/Tests.O2NextGen.GoEvent.Business/Tests.O2NextGen.GoEvent.Business.csproj b/src/Services/go-event/Tests/Tests.O2NextGen.GoEvent.Business/Tests.O2NextGen.GoEvent.Business.csproj new file mode 100644 index 00000000..d7b45d57 --- /dev/null +++ b/src/Services/go-event/Tests/Tests.O2NextGen.GoEvent.Business/Tests.O2NextGen.GoEvent.Business.csproj @@ -0,0 +1,16 @@ + + + + netcoreapp2.1 + + false + + + + + + + + + + diff --git a/src/Services/go-event/Tests/Tests.O2NextGen.GoEvent.Business/UnitTest1.cs b/src/Services/go-event/Tests/Tests.O2NextGen.GoEvent.Business/UnitTest1.cs new file mode 100644 index 00000000..1f2f8fc9 --- /dev/null +++ b/src/Services/go-event/Tests/Tests.O2NextGen.GoEvent.Business/UnitTest1.cs @@ -0,0 +1,18 @@ +using NUnit.Framework; + +namespace Tests.O2NextGen.GoEvent.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/go-event/Tests/Tests.O2NextGen.GoEvent.Data/Tests.O2NextGen.GoEvent.Data.csproj b/src/Services/go-event/Tests/Tests.O2NextGen.GoEvent.Data/Tests.O2NextGen.GoEvent.Data.csproj new file mode 100644 index 00000000..d7b45d57 --- /dev/null +++ b/src/Services/go-event/Tests/Tests.O2NextGen.GoEvent.Data/Tests.O2NextGen.GoEvent.Data.csproj @@ -0,0 +1,16 @@ + + + + netcoreapp2.1 + + false + + + + + + + + + + diff --git a/src/Services/go-event/Tests/Tests.O2NextGen.GoEvent.Data/UnitTest1.cs b/src/Services/go-event/Tests/Tests.O2NextGen.GoEvent.Data/UnitTest1.cs new file mode 100644 index 00000000..dee6e905 --- /dev/null +++ b/src/Services/go-event/Tests/Tests.O2NextGen.GoEvent.Data/UnitTest1.cs @@ -0,0 +1,18 @@ +using NUnit.Framework; + +namespace Tests.O2NextGen.GoEvent.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/go-event/Tests/Tests.O2NextGen.GoEvent.Impl/Tests.O2NextGen.GoEvent.Impl.csproj b/src/Services/go-event/Tests/Tests.O2NextGen.GoEvent.Impl/Tests.O2NextGen.GoEvent.Impl.csproj new file mode 100644 index 00000000..d7b45d57 --- /dev/null +++ b/src/Services/go-event/Tests/Tests.O2NextGen.GoEvent.Impl/Tests.O2NextGen.GoEvent.Impl.csproj @@ -0,0 +1,16 @@ + + + + netcoreapp2.1 + + false + + + + + + + + + + diff --git a/src/Services/go-event/Tests/Tests.O2NextGen.GoEvent.Impl/UnitTest1.cs b/src/Services/go-event/Tests/Tests.O2NextGen.GoEvent.Impl/UnitTest1.cs new file mode 100644 index 00000000..a557420d --- /dev/null +++ b/src/Services/go-event/Tests/Tests.O2NextGen.GoEvent.Impl/UnitTest1.cs @@ -0,0 +1,18 @@ +using NUnit.Framework; + +namespace Tests.O2NextGen.GoEvent.Impl +{ + public class Tests + { + [SetUp] + public void Setup() + { + } + + [Test] + public void Test1() + { + Assert.Pass(); + } + } +} \ No newline at end of file From 63732167a2bb4ba01a1ab18e8887e8f46c5a38d4 Mon Sep 17 00:00:00 2001 From: Denis Prokhorchik Date: Sat, 26 Mar 2022 23:26:55 +0300 Subject: [PATCH 2/3] chore(issue-176): code cleanup --- .../O2NextGen.GoEvent.Api/Controllers/ValuesController.cs | 3 --- src/Services/go-event/O2NextGen.GoEvent.Api/Program.cs | 7 ------- src/Services/go-event/O2NextGen.GoEvent.Api/Startup.cs | 7 ------- src/Services/go-event/O2NextGen.GoEvent.Business/Class1.cs | 4 +--- src/Services/go-event/O2NextGen.GoEvent.Data/Class1.cs | 4 +--- src/Services/go-event/O2NextGen.GoEvent.Impl/Class1.cs | 4 +--- .../IntegrationTests.O2NextGen.GoEvent.Api/UnitTest1.cs | 1 - 7 files changed, 3 insertions(+), 27 deletions(-) diff --git a/src/Services/go-event/O2NextGen.GoEvent.Api/Controllers/ValuesController.cs b/src/Services/go-event/O2NextGen.GoEvent.Api/Controllers/ValuesController.cs index 3c35cdd5..e6c61217 100644 --- a/src/Services/go-event/O2NextGen.GoEvent.Api/Controllers/ValuesController.cs +++ b/src/Services/go-event/O2NextGen.GoEvent.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.GoEvent.Api.Controllers { diff --git a/src/Services/go-event/O2NextGen.GoEvent.Api/Program.cs b/src/Services/go-event/O2NextGen.GoEvent.Api/Program.cs index a8a13527..c90a75de 100644 --- a/src/Services/go-event/O2NextGen.GoEvent.Api/Program.cs +++ b/src/Services/go-event/O2NextGen.GoEvent.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.GoEvent.Api { diff --git a/src/Services/go-event/O2NextGen.GoEvent.Api/Startup.cs b/src/Services/go-event/O2NextGen.GoEvent.Api/Startup.cs index 9c6f6ad2..0a9aeedc 100644 --- a/src/Services/go-event/O2NextGen.GoEvent.Api/Startup.cs +++ b/src/Services/go-event/O2NextGen.GoEvent.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.GoEvent.Api { diff --git a/src/Services/go-event/O2NextGen.GoEvent.Business/Class1.cs b/src/Services/go-event/O2NextGen.GoEvent.Business/Class1.cs index b0d4d2d9..03e878f7 100644 --- a/src/Services/go-event/O2NextGen.GoEvent.Business/Class1.cs +++ b/src/Services/go-event/O2NextGen.GoEvent.Business/Class1.cs @@ -1,6 +1,4 @@ -using System; - -namespace O2NextGen.GoEvent.Business +namespace O2NextGen.GoEvent.Business { public class Class1 { diff --git a/src/Services/go-event/O2NextGen.GoEvent.Data/Class1.cs b/src/Services/go-event/O2NextGen.GoEvent.Data/Class1.cs index c7714e0a..5a1803aa 100644 --- a/src/Services/go-event/O2NextGen.GoEvent.Data/Class1.cs +++ b/src/Services/go-event/O2NextGen.GoEvent.Data/Class1.cs @@ -1,6 +1,4 @@ -using System; - -namespace O2NextGen.GoEvent.Data +namespace O2NextGen.GoEvent.Data { public class Class1 { diff --git a/src/Services/go-event/O2NextGen.GoEvent.Impl/Class1.cs b/src/Services/go-event/O2NextGen.GoEvent.Impl/Class1.cs index 27c1cfbd..bb8fb8d7 100644 --- a/src/Services/go-event/O2NextGen.GoEvent.Impl/Class1.cs +++ b/src/Services/go-event/O2NextGen.GoEvent.Impl/Class1.cs @@ -1,6 +1,4 @@ -using System; - -namespace O2NextGen.GoEvent.Impl +namespace O2NextGen.GoEvent.Impl { public class Class1 { diff --git a/src/Services/go-event/Tests/IntegrationTests.O2NextGen.GoEvent.Api/UnitTest1.cs b/src/Services/go-event/Tests/IntegrationTests.O2NextGen.GoEvent.Api/UnitTest1.cs index 05f87756..7a2b4cba 100644 --- a/src/Services/go-event/Tests/IntegrationTests.O2NextGen.GoEvent.Api/UnitTest1.cs +++ b/src/Services/go-event/Tests/IntegrationTests.O2NextGen.GoEvent.Api/UnitTest1.cs @@ -1,4 +1,3 @@ -using System; using Xunit; namespace IntegrationTests.O2NextGen.GoEvent.Api From c47e5a037865dbd33f9952771bf122b45cc3a2ba Mon Sep 17 00:00:00 2001 From: Denis Prokhorchik Date: Sat, 26 Mar 2022 23:29:27 +0300 Subject: [PATCH 3/3] feat(issue-176): update .net core 2.1 to 2.2 for projects of go-event service --- .../O2NextGen.GoEvent.Api/O2NextGen.GoEvent.Api.csproj | 4 ++-- .../O2NextGen.GoEvent.Business.csproj | 2 +- .../O2NextGen.GoEvent.Data/O2NextGen.GoEvent.Data.csproj | 2 +- .../O2NextGen.GoEvent.Impl/O2NextGen.GoEvent.Impl.csproj | 4 ++-- .../IntegrationTests.O2NextGen.GoEvent.Api.csproj | 2 +- .../Tests.O2NextGen.GoEvent.Api.csproj | 4 ++-- .../Tests.O2NextGen.GoEvent.Business.csproj | 4 ++-- .../Tests.O2NextGen.GoEvent.Data.csproj | 6 +++--- .../Tests.O2NextGen.GoEvent.Impl.csproj | 4 ++-- 9 files changed, 16 insertions(+), 16 deletions(-) diff --git a/src/Services/go-event/O2NextGen.GoEvent.Api/O2NextGen.GoEvent.Api.csproj b/src/Services/go-event/O2NextGen.GoEvent.Api/O2NextGen.GoEvent.Api.csproj index ffe2b91d..79f1734c 100644 --- a/src/Services/go-event/O2NextGen.GoEvent.Api/O2NextGen.GoEvent.Api.csproj +++ b/src/Services/go-event/O2NextGen.GoEvent.Api/O2NextGen.GoEvent.Api.csproj @@ -1,7 +1,7 @@ - + - netcoreapp2.1 + netcoreapp2.2 diff --git a/src/Services/go-event/O2NextGen.GoEvent.Business/O2NextGen.GoEvent.Business.csproj b/src/Services/go-event/O2NextGen.GoEvent.Business/O2NextGen.GoEvent.Business.csproj index 86ea3bbe..c16c6d5b 100644 --- a/src/Services/go-event/O2NextGen.GoEvent.Business/O2NextGen.GoEvent.Business.csproj +++ b/src/Services/go-event/O2NextGen.GoEvent.Business/O2NextGen.GoEvent.Business.csproj @@ -1,7 +1,7 @@ - netcoreapp2.1 + netcoreapp2.2 diff --git a/src/Services/go-event/O2NextGen.GoEvent.Data/O2NextGen.GoEvent.Data.csproj b/src/Services/go-event/O2NextGen.GoEvent.Data/O2NextGen.GoEvent.Data.csproj index 86ea3bbe..c16c6d5b 100644 --- a/src/Services/go-event/O2NextGen.GoEvent.Data/O2NextGen.GoEvent.Data.csproj +++ b/src/Services/go-event/O2NextGen.GoEvent.Data/O2NextGen.GoEvent.Data.csproj @@ -1,7 +1,7 @@ - netcoreapp2.1 + netcoreapp2.2 diff --git a/src/Services/go-event/O2NextGen.GoEvent.Impl/O2NextGen.GoEvent.Impl.csproj b/src/Services/go-event/O2NextGen.GoEvent.Impl/O2NextGen.GoEvent.Impl.csproj index 86ea3bbe..2bd48b21 100644 --- a/src/Services/go-event/O2NextGen.GoEvent.Impl/O2NextGen.GoEvent.Impl.csproj +++ b/src/Services/go-event/O2NextGen.GoEvent.Impl/O2NextGen.GoEvent.Impl.csproj @@ -1,7 +1,7 @@ - + - netcoreapp2.1 + netcoreapp2.2 diff --git a/src/Services/go-event/Tests/IntegrationTests.O2NextGen.GoEvent.Api/IntegrationTests.O2NextGen.GoEvent.Api.csproj b/src/Services/go-event/Tests/IntegrationTests.O2NextGen.GoEvent.Api/IntegrationTests.O2NextGen.GoEvent.Api.csproj index 9c2aad77..08ce6023 100644 --- a/src/Services/go-event/Tests/IntegrationTests.O2NextGen.GoEvent.Api/IntegrationTests.O2NextGen.GoEvent.Api.csproj +++ b/src/Services/go-event/Tests/IntegrationTests.O2NextGen.GoEvent.Api/IntegrationTests.O2NextGen.GoEvent.Api.csproj @@ -1,7 +1,7 @@ - netcoreapp2.1 + netcoreapp2.2 false diff --git a/src/Services/go-event/Tests/Tests.O2NextGen.GoEvent.Api/Tests.O2NextGen.GoEvent.Api.csproj b/src/Services/go-event/Tests/Tests.O2NextGen.GoEvent.Api/Tests.O2NextGen.GoEvent.Api.csproj index d7b45d57..f1f19a17 100644 --- a/src/Services/go-event/Tests/Tests.O2NextGen.GoEvent.Api/Tests.O2NextGen.GoEvent.Api.csproj +++ b/src/Services/go-event/Tests/Tests.O2NextGen.GoEvent.Api/Tests.O2NextGen.GoEvent.Api.csproj @@ -1,13 +1,13 @@ - netcoreapp2.1 + netcoreapp2.2 false - + diff --git a/src/Services/go-event/Tests/Tests.O2NextGen.GoEvent.Business/Tests.O2NextGen.GoEvent.Business.csproj b/src/Services/go-event/Tests/Tests.O2NextGen.GoEvent.Business/Tests.O2NextGen.GoEvent.Business.csproj index d7b45d57..f1f19a17 100644 --- a/src/Services/go-event/Tests/Tests.O2NextGen.GoEvent.Business/Tests.O2NextGen.GoEvent.Business.csproj +++ b/src/Services/go-event/Tests/Tests.O2NextGen.GoEvent.Business/Tests.O2NextGen.GoEvent.Business.csproj @@ -1,13 +1,13 @@ - netcoreapp2.1 + netcoreapp2.2 false - + diff --git a/src/Services/go-event/Tests/Tests.O2NextGen.GoEvent.Data/Tests.O2NextGen.GoEvent.Data.csproj b/src/Services/go-event/Tests/Tests.O2NextGen.GoEvent.Data/Tests.O2NextGen.GoEvent.Data.csproj index d7b45d57..15e18f8c 100644 --- a/src/Services/go-event/Tests/Tests.O2NextGen.GoEvent.Data/Tests.O2NextGen.GoEvent.Data.csproj +++ b/src/Services/go-event/Tests/Tests.O2NextGen.GoEvent.Data/Tests.O2NextGen.GoEvent.Data.csproj @@ -1,13 +1,13 @@ - + - netcoreapp2.1 + netcoreapp2.2 false - + diff --git a/src/Services/go-event/Tests/Tests.O2NextGen.GoEvent.Impl/Tests.O2NextGen.GoEvent.Impl.csproj b/src/Services/go-event/Tests/Tests.O2NextGen.GoEvent.Impl/Tests.O2NextGen.GoEvent.Impl.csproj index d7b45d57..f1f19a17 100644 --- a/src/Services/go-event/Tests/Tests.O2NextGen.GoEvent.Impl/Tests.O2NextGen.GoEvent.Impl.csproj +++ b/src/Services/go-event/Tests/Tests.O2NextGen.GoEvent.Impl/Tests.O2NextGen.GoEvent.Impl.csproj @@ -1,13 +1,13 @@ - netcoreapp2.1 + netcoreapp2.2 false - +