Skip to content

Commit

Permalink
Applying template changes
Browse files Browse the repository at this point in the history
  • Loading branch information
GitHub Actions committed Dec 3, 2024
1 parent d623e20 commit ecdf067
Show file tree
Hide file tree
Showing 31 changed files with 46 additions and 248 deletions.
28 changes: 0 additions & 28 deletions .github/template/apply.sh

This file was deleted.

4 changes: 0 additions & 4 deletions .github/template/cleanup.sh

This file was deleted.

32 changes: 0 additions & 32 deletions .github/template/template-compose.yml

This file was deleted.

81 changes: 0 additions & 81 deletions .github/template/validate.sh

This file was deleted.

33 changes: 0 additions & 33 deletions .github/workflows/template.yml

This file was deleted.

24 changes: 0 additions & 24 deletions .github/workflows/validate-template.yml

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,6 @@
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\Backend.Api\Backend.Api.csproj"/>
<ProjectReference Include="..\BtmsBackend\BtmsBackend.csproj"/>
</ItemGroup>
</Project>
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using Microsoft.AspNetCore.Builder;

namespace Backend.Api.Test.Config;
namespace BtmsBackend.Test.Config;

public class EnvironmentTest
{
Expand All @@ -10,7 +10,7 @@ public void IsNotDevModeByDefault()
{
var _builder = WebApplication.CreateBuilder();

var isDev = Backend.Api.Config.Environment.IsDevMode(_builder);
var isDev = BtmsBackend.Config.Environment.IsDevMode(_builder);

Assert.False(isDev);
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
using MongoDB.Driver;
using Backend.Api.Utils.Mongo;
using BtmsBackend.Utils.Mongo;
using Microsoft.Extensions.Logging;
using Microsoft.Extensions.Logging.Abstractions;
using NSubstitute;
using Backend.Api.Example.Models;
using Backend.Api.Example.Services;
using BtmsBackend.Example.Models;
using BtmsBackend.Example.Services;
using FluentAssertions;
using MongoDB.Bson;

namespace Backend.Api.Test.Example.Services;
namespace BtmsBackend.Test.Example.Services;

public class ExamplePersistenceTests
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
using Backend.Api.Example.Models;
using Backend.Api.Example.Validators;
using BtmsBackend.Example.Models;
using BtmsBackend.Example.Validators;
using FluentValidation.TestHelper;
using MongoDB.Bson;

namespace Backend.Api.Test.Example.Validators;
namespace BtmsBackend.Test.Example.Validators;

public class ExampleValidatorTests
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
using Backend.Api.Utils.Http;
using BtmsBackend.Utils.Http;
using NSubstitute;
using Microsoft.Extensions.Logging.Abstractions;
using FluentAssertions;
using Serilog.Core;
using Elastic.CommonSchema;
using Serilog;

namespace Backend.Api.Test.Utils.Http;
namespace BtmsBackend.Test.Utils.Http;

public class ProxyTest
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
using MongoDB.Driver;
using NSubstitute;
using Microsoft.Extensions.Logging.Abstractions;
using Backend.Api.Utils.Mongo;
using BtmsBackend.Utils.Mongo;

namespace Backend.Api.Tests.Utils.Mongo
namespace BtmsBackend.Tests.Utils.Mongo
{
public class MongoServiceTests
{
Expand Down
4 changes: 2 additions & 2 deletions CdpDotnetBackendTemplate.sln → BtmsBackend.sln
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 17.0.31903.59
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Backend.Api", "Backend.Api\Backend.Api.csproj", "{7D935959-D3BE-4EDC-BAEC-541C72741633}"
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "BtmsBackend", "BtmsBackend\BtmsBackend.csproj", "{7D935959-D3BE-4EDC-BAEC-541C72741633}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Backend.Api.Test", "Backend.Api.Test\Backend.Api.Test.csproj", "{5CB86A4A-162D-4A20-9403-5BB89D671BF6}"
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "BtmsBackend.Test", "BtmsBackend.Test\BtmsBackend.Test.csproj", "{5CB86A4A-162D-4A20-9403-5BB89D671BF6}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace Backend.Api.Config;
namespace BtmsBackend.Config;

public static class Environment
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
using Backend.Api.Example.Models;
using Backend.Api.Example.Services;
using BtmsBackend.Example.Models;
using BtmsBackend.Example.Services;
using FluentValidation;
using FluentValidation.Results;
using System.Diagnostics.CodeAnalysis;

namespace Backend.Api.Example.Endpoints;
namespace BtmsBackend.Example.Endpoints;

[ExcludeFromCodeCoverage]
public static class ExampleEndpoints
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
using MongoDB.Bson.Serialization.Attributes;
using MongoDB.Bson.Serialization.IdGenerators;

namespace Backend.Api.Example.Models;
namespace BtmsBackend.Example.Models;

public class ExampleModel
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
using Backend.Api.Example.Models;
using Backend.Api.Utils.Mongo;
using BtmsBackend.Example.Models;
using BtmsBackend.Utils.Mongo;
using MongoDB.Driver;
using System.Diagnostics.CodeAnalysis;

namespace Backend.Api.Example.Services;
namespace BtmsBackend.Example.Services;

public interface IExamplePersistence
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using Backend.Api.Example.Models;
using BtmsBackend.Example.Models;
using FluentValidation;

namespace Backend.Api.Example.Validators;
namespace BtmsBackend.Example.Validators;

public class ExampleValidator : AbstractValidator<ExampleModel>
{
Expand Down
12 changes: 6 additions & 6 deletions Backend.Api/Program.cs → BtmsBackend/Program.cs
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
using Backend.Api.Example.Endpoints;
using Backend.Api.Example.Services;
using Backend.Api.Utils;
using Backend.Api.Utils.Http;
using Backend.Api.Utils.Logging;
using Backend.Api.Utils.Mongo;
using BtmsBackend.Example.Endpoints;
using BtmsBackend.Example.Services;
using BtmsBackend.Utils;
using BtmsBackend.Utils.Http;
using BtmsBackend.Utils.Logging;
using BtmsBackend.Utils.Mongo;
using FluentValidation;
using Serilog;
using Serilog.Core;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"profiles": {
"Backend.Api": {
"BtmsBackend": {
"commandName": "Project",
"dotnetRunMessages": true,
"launchBrowser": false,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
using Serilog.Core;
using System.Diagnostics.CodeAnalysis;

namespace Backend.Api.Utils.Http;
namespace BtmsBackend.Utils.Http;

public static class Proxy
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
using Serilog.Events;
using System.Diagnostics.CodeAnalysis;

namespace Backend.Api.Utils.Logging;
namespace BtmsBackend.Utils.Logging;

[ExcludeFromCodeCoverage]
/**
Expand Down
Loading

0 comments on commit ecdf067

Please sign in to comment.