Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;

namespace O2NextGen.SmallTalk.Api.Controllers
{
[Route("api/[controller]")]
[ApiController]
public class ValuesController : ControllerBase
{
// GET api/values
[HttpGet]
public ActionResult<IEnumerable<string>> Get()
{
return new string[] { "value1", "value2" };
}

// GET api/values/5
[HttpGet("{id}")]
public ActionResult<string> 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)
{
}
}
}

Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<Project Sdk="Microsoft.NET.Sdk.Web">

<PropertyGroup>
<TargetFramework>netcoreapp2.2</TargetFramework>
</PropertyGroup>

<ItemGroup>
<Folder Include="wwwroot\" />
</ItemGroup>

<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.App" />
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\O2NextGen.SmallTalk.Business\O2NextGen.SmallTalk.Business.csproj" />
<ProjectReference Include="..\O2NextGen.SmallTalk.Data\O2NextGen.SmallTalk.Data.csproj" />
<ProjectReference Include="..\O2NextGen.SmallTalk.Impl\O2NextGen.SmallTalk.Impl.csproj" />
</ItemGroup>

</Project>
25 changes: 25 additions & 0 deletions src/Services/smalltalk/O2NextGen.SmallTalk.Api/Program.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.Logging;

namespace O2NextGen.SmallTalk.Api
{
public class Program
{
public static void Main(string[] args)
{
CreateWebHostBuilder(args).Build().Run();
}

public static IWebHostBuilder CreateWebHostBuilder(string[] args) =>
WebHost.CreateDefaultBuilder(args)
.UseStartup<Startup>();
}
}

Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
"$schema": "http://json.schemastore.org/launchsettings.json",
"iisSettings": {
"windowsAuthentication": false,
"anonymousAuthentication": true,
"iisExpress": {
"applicationUrl": "http://localhost:21322",
"sslPort": 44362
}
},
"profiles": {
"IIS Express": {
"commandName": "IISExpress",
"launchBrowser": true,
"launchUrl": "api/values",
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
}
},
"O2NextGen.SmallTalk.Api": {
"commandName": "Project",
"launchBrowser": true,
"launchUrl": "api/values",
"applicationUrl": "https://localhost:5001;http://localhost:5000",
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
}
}
}
}

48 changes: 48 additions & 0 deletions src/Services/smalltalk/O2NextGen.SmallTalk.Api/Startup.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
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;

namespace O2NextGen.SmallTalk.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();
}
}
}

Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"Logging": {
"LogLevel": {
"Default": "Debug",
"System": "Information",
"Microsoft": "Information"
}
}
}

Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"Logging": {
"LogLevel": {
"Default": "Warning"
}
},
"AllowedHosts": "*"
}

Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>netcoreapp2.2</TargetFramework>
</PropertyGroup>

</Project>
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>netcoreapp2.2</TargetFramework>
</PropertyGroup>

</Project>
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>netcoreapp2.2</TargetFramework>
</PropertyGroup>

</Project>
82 changes: 82 additions & 0 deletions src/Services/smalltalk/O2NextGen.SmallTalk.sln
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 16
VisualStudioVersion = 25.0.1700.0
MinimumVisualStudioVersion = 10.0.40219.1
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Tests", "Tests", "{64D081A5-7679-4BA4-B1D9-9577379FF16F}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "O2NextGen.SmallTalk.Api", "O2NextGen.SmallTalk.Api\O2NextGen.SmallTalk.Api.csproj", "{4D3AF6CE-4262-4F0E-9DAC-86A4781C7D96}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "IntegrationTests.O2NextGen.SmallTalk.Api", "Tests\IntegrationTests.O2NextGen.SmallTalk.Api\IntegrationTests.O2NextGen.SmallTalk.Api.csproj", "{9BBF5376-E08B-4181-9187-2BE4A8787CF4}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Tests.O2NextGen.SmallTalk.Api", "Tests\IntegrationTests.O2NextGen.SmallTalk.Api\Tests.O2NextGen.SmallTalk.Api\Tests.O2NextGen.SmallTalk.Api.csproj", "{39D1C8DC-64B2-4496-8B10-D04B0EB82BEA}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "O2NextGen.SmallTalk.Data", "O2NextGen.SmallTalk.Data\O2NextGen.SmallTalk.Data.csproj", "{08CE530B-8272-4A10-A65F-318BBD863B47}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "O2NextGen.SmallTalk.Impl", "O2NextGen.SmallTalk.Impl\O2NextGen.SmallTalk.Impl.csproj", "{D02DEA98-B9B8-419D-A770-435C6EC5A2E6}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "O2NextGen.SmallTalk.Business", "O2NextGen.SmallTalk.Business\O2NextGen.SmallTalk.Business.csproj", "{03EA2F69-4F9E-418E-9401-D95AAC4D92C8}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Tests.O2NextGen.SmallTalk.Business", "Tests\Tests.O2NextGen.SmallTalk.Business\Tests.O2NextGen.SmallTalk.Business.csproj", "{B025EE5D-EA23-4FEF-8503-B4D819344EFF}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Tests.O2NextGen.SmallTalk.Data", "Tests\Tests.O2NextGen.SmallTalk.Data\Tests.O2NextGen.SmallTalk.Data.csproj", "{750729AB-58E4-470C-AB8E-4AC0ED1740BF}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Tests.O2NextGen.SmallTalk.Impl", "Tests\Tests.O2NextGen.SmallTalk.Impl\Tests.O2NextGen.SmallTalk.Impl.csproj", "{D1347913-7AF3-44FF-8E98-908914004ACD}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{4D3AF6CE-4262-4F0E-9DAC-86A4781C7D96}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{4D3AF6CE-4262-4F0E-9DAC-86A4781C7D96}.Debug|Any CPU.Build.0 = Debug|Any CPU
{4D3AF6CE-4262-4F0E-9DAC-86A4781C7D96}.Release|Any CPU.ActiveCfg = Release|Any CPU
{4D3AF6CE-4262-4F0E-9DAC-86A4781C7D96}.Release|Any CPU.Build.0 = Release|Any CPU
{9BBF5376-E08B-4181-9187-2BE4A8787CF4}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{9BBF5376-E08B-4181-9187-2BE4A8787CF4}.Debug|Any CPU.Build.0 = Debug|Any CPU
{9BBF5376-E08B-4181-9187-2BE4A8787CF4}.Release|Any CPU.ActiveCfg = Release|Any CPU
{9BBF5376-E08B-4181-9187-2BE4A8787CF4}.Release|Any CPU.Build.0 = Release|Any CPU
{39D1C8DC-64B2-4496-8B10-D04B0EB82BEA}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{39D1C8DC-64B2-4496-8B10-D04B0EB82BEA}.Debug|Any CPU.Build.0 = Debug|Any CPU
{39D1C8DC-64B2-4496-8B10-D04B0EB82BEA}.Release|Any CPU.ActiveCfg = Release|Any CPU
{39D1C8DC-64B2-4496-8B10-D04B0EB82BEA}.Release|Any CPU.Build.0 = Release|Any CPU
{08CE530B-8272-4A10-A65F-318BBD863B47}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{08CE530B-8272-4A10-A65F-318BBD863B47}.Debug|Any CPU.Build.0 = Debug|Any CPU
{08CE530B-8272-4A10-A65F-318BBD863B47}.Release|Any CPU.ActiveCfg = Release|Any CPU
{08CE530B-8272-4A10-A65F-318BBD863B47}.Release|Any CPU.Build.0 = Release|Any CPU
{D02DEA98-B9B8-419D-A770-435C6EC5A2E6}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{D02DEA98-B9B8-419D-A770-435C6EC5A2E6}.Debug|Any CPU.Build.0 = Debug|Any CPU
{D02DEA98-B9B8-419D-A770-435C6EC5A2E6}.Release|Any CPU.ActiveCfg = Release|Any CPU
{D02DEA98-B9B8-419D-A770-435C6EC5A2E6}.Release|Any CPU.Build.0 = Release|Any CPU
{03EA2F69-4F9E-418E-9401-D95AAC4D92C8}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{03EA2F69-4F9E-418E-9401-D95AAC4D92C8}.Debug|Any CPU.Build.0 = Debug|Any CPU
{03EA2F69-4F9E-418E-9401-D95AAC4D92C8}.Release|Any CPU.ActiveCfg = Release|Any CPU
{03EA2F69-4F9E-418E-9401-D95AAC4D92C8}.Release|Any CPU.Build.0 = Release|Any CPU
{B025EE5D-EA23-4FEF-8503-B4D819344EFF}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{B025EE5D-EA23-4FEF-8503-B4D819344EFF}.Debug|Any CPU.Build.0 = Debug|Any CPU
{B025EE5D-EA23-4FEF-8503-B4D819344EFF}.Release|Any CPU.ActiveCfg = Release|Any CPU
{B025EE5D-EA23-4FEF-8503-B4D819344EFF}.Release|Any CPU.Build.0 = Release|Any CPU
{750729AB-58E4-470C-AB8E-4AC0ED1740BF}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{750729AB-58E4-470C-AB8E-4AC0ED1740BF}.Debug|Any CPU.Build.0 = Debug|Any CPU
{750729AB-58E4-470C-AB8E-4AC0ED1740BF}.Release|Any CPU.ActiveCfg = Release|Any CPU
{750729AB-58E4-470C-AB8E-4AC0ED1740BF}.Release|Any CPU.Build.0 = Release|Any CPU
{D1347913-7AF3-44FF-8E98-908914004ACD}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{D1347913-7AF3-44FF-8E98-908914004ACD}.Debug|Any CPU.Build.0 = Debug|Any CPU
{D1347913-7AF3-44FF-8E98-908914004ACD}.Release|Any CPU.ActiveCfg = Release|Any CPU
{D1347913-7AF3-44FF-8E98-908914004ACD}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {22C24FCD-AA42-4E4F-B590-2632C8AAFE58}
EndGlobalSection
GlobalSection(NestedProjects) = preSolution
{9BBF5376-E08B-4181-9187-2BE4A8787CF4} = {64D081A5-7679-4BA4-B1D9-9577379FF16F}
{39D1C8DC-64B2-4496-8B10-D04B0EB82BEA} = {64D081A5-7679-4BA4-B1D9-9577379FF16F}
{B025EE5D-EA23-4FEF-8503-B4D819344EFF} = {64D081A5-7679-4BA4-B1D9-9577379FF16F}
{750729AB-58E4-470C-AB8E-4AC0ED1740BF} = {64D081A5-7679-4BA4-B1D9-9577379FF16F}
{D1347913-7AF3-44FF-8E98-908914004ACD} = {64D081A5-7679-4BA4-B1D9-9577379FF16F}
EndGlobalSection
EndGlobal
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>netcoreapp2.2</TargetFramework>

<IsPackable>false</IsPackable>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="15.9.0" />
<PackageReference Include="xunit" Version="2.4.0" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.0" />
</ItemGroup>

<ItemGroup>
<Compile Remove="Tests.O2NextGen.SmallTalk.Api\UnitTest1.cs" />
<Compile Remove="Tests.O2NextGen.SmallTalk.Api\**" />
</ItemGroup>
<ItemGroup>
<None Remove="Tests.O2NextGen.SmallTalk.Api\obj\Tests.O2NextGen.SmallTalk.Api.csproj.nuget.g.props" />
<None Remove="Tests.O2NextGen.SmallTalk.Api\obj\Tests.O2NextGen.SmallTalk.Api.csproj.nuget.g.targets" />
<None Remove="Tests.O2NextGen.SmallTalk.Api\obj\project.assets.json" />
<None Remove="Tests.O2NextGen.SmallTalk.Api\obj\project.nuget.cache" />
<None Remove="Tests.O2NextGen.SmallTalk.Api\obj\Tests.O2NextGen.SmallTalk.Api.csproj.nuget.dgspec.json" />
<None Remove="Tests.O2NextGen.SmallTalk.Api\**" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Remove="Tests.O2NextGen.SmallTalk.Api\**" />
</ItemGroup>
</Project>
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>netcoreapp2.2</TargetFramework>

<IsPackable>false</IsPackable>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="NUnit" Version="3.12.0" />
<PackageReference Include="NUnit3TestAdapter" Version="3.16.1" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.5.0" />
</ItemGroup>

</Project>
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>netcoreapp2.2</TargetFramework>

<IsPackable>false</IsPackable>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="NUnit" Version="3.12.0" />
<PackageReference Include="NUnit3TestAdapter" Version="3.16.1" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.5.0" />
</ItemGroup>
</Project>
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>netcoreapp2.2</TargetFramework>

<IsPackable>false</IsPackable>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="NUnit" Version="3.12.0" />
<PackageReference Include="NUnit3TestAdapter" Version="3.16.1" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.5.0" />
</ItemGroup>

</Project>
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>netcoreapp2.2</TargetFramework>

<IsPackable>false</IsPackable>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="NUnit" Version="3.12.0" />
<PackageReference Include="NUnit3TestAdapter" Version="3.16.1" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.5.0" />
</ItemGroup>

</Project>