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..1a3c83dc --- /dev/null +++ b/src/Services/s-link/O2NextGen.SLink.Api/Controllers/ValuesController.cs @@ -0,0 +1,42 @@ +using Microsoft.AspNetCore.Mvc; +using System.Collections.Generic; + +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..35e9c27f --- /dev/null +++ b/src/Services/s-link/O2NextGen.SLink.Api/Program.cs @@ -0,0 +1,17 @@ +using Microsoft.AspNetCore; +using Microsoft.AspNetCore.Hosting; + +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..492692dd --- /dev/null +++ b/src/Services/s-link/O2NextGen.SLink.Api/Properties/launchSettings.json @@ -0,0 +1,14 @@ +{ + "$schema": "http://json.schemastore.org/launchsettings.json", + "profiles": { + "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..61ca2155 --- /dev/null +++ b/src/Services/s-link/O2NextGen.SLink.Api/Startup.cs @@ -0,0 +1,40 @@ +using Microsoft.AspNetCore.Builder; +using Microsoft.AspNetCore.Hosting; +using Microsoft.AspNetCore.Mvc; +using Microsoft.Extensions.Configuration; +using Microsoft.Extensions.DependencyInjection; + +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..868c9a1f --- /dev/null +++ b/src/Services/s-link/O2NextGen.SLink.Business/Class1.cs @@ -0,0 +1,6 @@ +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..6733be33 --- /dev/null +++ b/src/Services/s-link/O2NextGen.SLink.Data/Class1.cs @@ -0,0 +1,6 @@ +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..2f0b577d --- /dev/null +++ b/src/Services/s-link/O2NextGen.SLink.Impl/Class1.cs @@ -0,0 +1,6 @@ +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..b670dcf8 --- /dev/null +++ b/src/Services/s-link/Tests/IntegrationTests.O2NextGen.SLink.Api/UnitTest1.cs @@ -0,0 +1,13 @@ +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