Skip to content

Commit

Permalink
feat(issue-171): add service feedback-x
Browse files Browse the repository at this point in the history
Merge pull request #237 from live-dev999:live-dev999/issue171
  • Loading branch information
live-dev999 committed Mar 26, 2022
2 parents fc3907e + 1cf87ac commit 7da3ec6
Show file tree
Hide file tree
Showing 24 changed files with 438 additions and 0 deletions.
82 changes: 82 additions & 0 deletions src/Services/feedback-x/O2NextGen.FeedBackX.Api.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 17
VisualStudioVersion = 17.0.32112.339
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "O2NextGen.FeedBackX.Api", ".\O2NextGen.FeedBackX.Api\O2NextGen.FeedBackX.Api.csproj", "{CFECE6E9-68F3-4151-9AC5-02EA78F5DDE7}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Tests", "Tests", "{FBF4A821-E179-491F-B1EF-F2A2C0CA4041}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Tests.O2NextGen.FeedBackX.Api", ".\Tests\Tests.O2NextGen.FeedBackX.Api\Tests.O2NextGen.FeedBackX.Api.csproj", "{C1793159-6373-4534-BA0E-87BA84F46674}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "O2NextGen.FeedBackX.Business", ".\O2NextGen.FeedBackX.Business\O2NextGen.FeedBackX.Business.csproj", "{5C1ED6D9-3DD9-45A2-AB8F-6A466A7E52E7}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "IntegrationTests.O2NextGen.FeedBackX.Api", ".\Tests\IntegrationTests.O2NextGen.FeedBackX.Api\IntegrationTests.O2NextGen.FeedBackX.Api.csproj", "{5E2C7CDA-D655-4495-92A9-20ADAD455F5F}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "O2NextGen.FeedBackX.Data", ".\O2NextGen.FeedBackX.Data\O2NextGen.FeedBackX.Data.csproj", "{00CF5E41-5B8E-4AE4-84E8-C081CA312396}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "O2NextGen.FeedBackX.Impl", ".\O2NextGen.FeedBackX.Impl\O2NextGen.FeedBackX.Impl.csproj", "{01C937DF-D65F-4FD2-B5C7-D4B20C7A148F}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Tests.O2NextGen.FeedBackX.Business", ".\Tests\Tests.O2NextGen.FeedBackX.Business\Tests.O2NextGen.FeedBackX.Business.csproj", "{1857BDA4-5DD7-4980-B652-94EC47BD205F}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Tests.O2NextGen.FeedBackX.Data", ".\Tests\Tests.O2NextGen.FeedBackX.Data\Tests.O2NextGen.FeedBackX.Data.csproj", "{E5FE3437-62BD-4E98-A539-B47E99BF5329}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Tests.O2NextGen.FeedBackX.Impl", ".\Tests\Tests.O2NextGen.FeedBackX.Impl\Tests.O2NextGen.FeedBackX.Impl.csproj", "{340B279B-C527-41D6-A5DE-359F8B51F9A8}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{CFECE6E9-68F3-4151-9AC5-02EA78F5DDE7}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{CFECE6E9-68F3-4151-9AC5-02EA78F5DDE7}.Debug|Any CPU.Build.0 = Debug|Any CPU
{CFECE6E9-68F3-4151-9AC5-02EA78F5DDE7}.Release|Any CPU.ActiveCfg = Release|Any CPU
{CFECE6E9-68F3-4151-9AC5-02EA78F5DDE7}.Release|Any CPU.Build.0 = Release|Any CPU
{C1793159-6373-4534-BA0E-87BA84F46674}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{C1793159-6373-4534-BA0E-87BA84F46674}.Debug|Any CPU.Build.0 = Debug|Any CPU
{C1793159-6373-4534-BA0E-87BA84F46674}.Release|Any CPU.ActiveCfg = Release|Any CPU
{C1793159-6373-4534-BA0E-87BA84F46674}.Release|Any CPU.Build.0 = Release|Any CPU
{5C1ED6D9-3DD9-45A2-AB8F-6A466A7E52E7}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{5C1ED6D9-3DD9-45A2-AB8F-6A466A7E52E7}.Debug|Any CPU.Build.0 = Debug|Any CPU
{5C1ED6D9-3DD9-45A2-AB8F-6A466A7E52E7}.Release|Any CPU.ActiveCfg = Release|Any CPU
{5C1ED6D9-3DD9-45A2-AB8F-6A466A7E52E7}.Release|Any CPU.Build.0 = Release|Any CPU
{5E2C7CDA-D655-4495-92A9-20ADAD455F5F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{5E2C7CDA-D655-4495-92A9-20ADAD455F5F}.Debug|Any CPU.Build.0 = Debug|Any CPU
{5E2C7CDA-D655-4495-92A9-20ADAD455F5F}.Release|Any CPU.ActiveCfg = Release|Any CPU
{5E2C7CDA-D655-4495-92A9-20ADAD455F5F}.Release|Any CPU.Build.0 = Release|Any CPU
{00CF5E41-5B8E-4AE4-84E8-C081CA312396}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{00CF5E41-5B8E-4AE4-84E8-C081CA312396}.Debug|Any CPU.Build.0 = Debug|Any CPU
{00CF5E41-5B8E-4AE4-84E8-C081CA312396}.Release|Any CPU.ActiveCfg = Release|Any CPU
{00CF5E41-5B8E-4AE4-84E8-C081CA312396}.Release|Any CPU.Build.0 = Release|Any CPU
{01C937DF-D65F-4FD2-B5C7-D4B20C7A148F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{01C937DF-D65F-4FD2-B5C7-D4B20C7A148F}.Debug|Any CPU.Build.0 = Debug|Any CPU
{01C937DF-D65F-4FD2-B5C7-D4B20C7A148F}.Release|Any CPU.ActiveCfg = Release|Any CPU
{01C937DF-D65F-4FD2-B5C7-D4B20C7A148F}.Release|Any CPU.Build.0 = Release|Any CPU
{1857BDA4-5DD7-4980-B652-94EC47BD205F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{1857BDA4-5DD7-4980-B652-94EC47BD205F}.Debug|Any CPU.Build.0 = Debug|Any CPU
{1857BDA4-5DD7-4980-B652-94EC47BD205F}.Release|Any CPU.ActiveCfg = Release|Any CPU
{1857BDA4-5DD7-4980-B652-94EC47BD205F}.Release|Any CPU.Build.0 = Release|Any CPU
{E5FE3437-62BD-4E98-A539-B47E99BF5329}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{E5FE3437-62BD-4E98-A539-B47E99BF5329}.Debug|Any CPU.Build.0 = Debug|Any CPU
{E5FE3437-62BD-4E98-A539-B47E99BF5329}.Release|Any CPU.ActiveCfg = Release|Any CPU
{E5FE3437-62BD-4E98-A539-B47E99BF5329}.Release|Any CPU.Build.0 = Release|Any CPU
{340B279B-C527-41D6-A5DE-359F8B51F9A8}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{340B279B-C527-41D6-A5DE-359F8B51F9A8}.Debug|Any CPU.Build.0 = Debug|Any CPU
{340B279B-C527-41D6-A5DE-359F8B51F9A8}.Release|Any CPU.ActiveCfg = Release|Any CPU
{340B279B-C527-41D6-A5DE-359F8B51F9A8}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(NestedProjects) = preSolution
{C1793159-6373-4534-BA0E-87BA84F46674} = {FBF4A821-E179-491F-B1EF-F2A2C0CA4041}
{5E2C7CDA-D655-4495-92A9-20ADAD455F5F} = {FBF4A821-E179-491F-B1EF-F2A2C0CA4041}
{1857BDA4-5DD7-4980-B652-94EC47BD205F} = {FBF4A821-E179-491F-B1EF-F2A2C0CA4041}
{E5FE3437-62BD-4E98-A539-B47E99BF5329} = {FBF4A821-E179-491F-B1EF-F2A2C0CA4041}
{340B279B-C527-41D6-A5DE-359F8B51F9A8} = {FBF4A821-E179-491F-B1EF-F2A2C0CA4041}
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {CD873B2D-C019-4595-98F4-60CD9772C12E}
EndGlobalSection
EndGlobal
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
using Microsoft.AspNetCore.Mvc;
using System.Collections.Generic;

namespace O2NextGen.FeedBackX.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,16 @@
<Project Sdk="Microsoft.NET.Sdk.Web">

<PropertyGroup>
<TargetFramework>netcoreapp2.1</TargetFramework>
</PropertyGroup>

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

<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.App" />
<PackageReference Include="Microsoft.AspNetCore.Razor.Design" Version="2.1.2" PrivateAssets="All" />
</ItemGroup>

</Project>
17 changes: 17 additions & 0 deletions src/Services/feedback-x/O2NextGen.FeedBackX.Api/Program.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
using Microsoft.AspNetCore;
using Microsoft.AspNetCore.Hosting;

namespace O2NextGen.FeedBackX.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,14 @@
{
"$schema": "http://json.schemastore.org/launchsettings.json",
"profiles": {
"O2NextGen.FeedBackX.Api": {
"commandName": "Project",
"launchBrowser": true,
"launchUrl": "api/values",
"applicationUrl": "https://localhost:5001;http://localhost:5000",
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
}
}
}
}
40 changes: 40 additions & 0 deletions src/Services/feedback-x/O2NextGen.FeedBackX.Api/Startup.cs
Original file line number Diff line number Diff line change
@@ -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.FeedBackX.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,9 @@
{
"Logging": {
"LogLevel": {
"Default": "Debug",
"System": "Information",
"Microsoft": "Information"
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"Logging": {
"LogLevel": {
"Default": "Warning"
}
},
"AllowedHosts": "*"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
namespace O2NextGen.FeedBackX.Business
{
public class Class1
{
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>netcoreapp2.1</TargetFramework>
</PropertyGroup>

</Project>
6 changes: 6 additions & 0 deletions src/Services/feedback-x/O2NextGen.FeedBackX.Data/Class1.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
namespace O2NextGen.FeedBackX.Data
{
public class Class1
{
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>netcoreapp2.1</TargetFramework>
</PropertyGroup>

</Project>
6 changes: 6 additions & 0 deletions src/Services/feedback-x/O2NextGen.FeedBackX.Impl/Class1.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
namespace O2NextGen.FeedBackX.Impl
{
public class Class1
{
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>netcoreapp2.1</TargetFramework>
</PropertyGroup>

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

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

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

<ItemGroup>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.11.0" />
<PackageReference Include="xunit" Version="2.4.1" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.3">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
<PackageReference Include="coverlet.collector" Version="3.1.0">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
</ItemGroup>

</Project>
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
using Xunit;

namespace IntegrationTests.O2NextGen.FeedBackX.Api
{
public class UnitTest1
{
[Fact]
public void Test1()
{

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

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

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

<ItemGroup>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.11.0" />
<PackageReference Include="NUnit" Version="3.13.2" />
<PackageReference Include="NUnit3TestAdapter" Version="4.0.0" />
<PackageReference Include="coverlet.collector" Version="3.1.0" />
</ItemGroup>

</Project>
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
using NUnit.Framework;

namespace Tests.O2NextGen.FeedBackX.Api
{
public class Tests
{
[SetUp]
public void Setup()
{
}

[Test]
public void Test1()
{
Assert.Pass();
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<Project Sdk="Microsoft.NET.Sdk">

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

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

<ItemGroup>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.11.0" />
<PackageReference Include="NUnit" Version="3.13.2" />
<PackageReference Include="NUnit3TestAdapter" Version="4.0.0" />
<PackageReference Include="coverlet.collector" Version="3.1.0" />
</ItemGroup>

</Project>
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
using NUnit.Framework;

namespace Tests.O2NextGen.FeedBackX.Business
{
public class Tests
{
[SetUp]
public void Setup()
{
}

[Test]
public void Test1()
{
Assert.Pass();
}
}
}
Loading

0 comments on commit 7da3ec6

Please sign in to comment.