This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # To learn more about .editorconfig see https://aka.ms/editorconfigdocs | |
| # top-most EditorConfig file | |
| root = true | |
| # All files | |
| [*] | |
| indent_style = space | |
| # cs files |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public string BuildInsert<TEntity>(TEntity entity) where TEntity : class | |
| { | |
| var builder = new SqlBuilder(); | |
| var map = DapperExtensions.DapperExtensions.GetMap<TEntity>(); | |
| // /**select**/ -- has to be low case | |
| var selectSupplierIdBuilder = builder.AddTemplate(string.Format("INSERT INTO {0} /**select**/ from {0} /**where**/ ", map.TableName)); | |
| builder.Select("Id"); | |
| builder.Where("Cityity", new { City = "Tokyo" }); // pass an anonymous object | |
| return DapperExtensions.DapperExtensions.InstanceFactory(new DapperExtensionsConfiguration( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public class UnitTestModule : IClassFixture<PlatformApiTestFixture> | |
| { | |
| readonly PlatformApiTestFixture _platformFixture; | |
| public UnitTestModule(PlatformApiTestFixture platformFixture) | |
| { | |
| Environment.SetEnvironmentVariable("ASPNETCORE_HOSTINGSTARTUPASSEMBLIES", "GoogleApiGateway"); | |
| _platformFixture = platformFixture; | |
| } | |
| [Fact] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public class PlatformApiTestFixture : IDisposable | |
| { | |
| public TestServer _testServer; | |
| public PlatformApiTestFixture() | |
| { | |
| } | |
| private void InitServer() | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <# | |
| .SYNOPSIS | |
| The script creates a github respository. | |
| .DESCRIPTION | |
| The script will create a github respository and it will add scripts for the correct initialization of a platform project. | |
| #> | |
| Param( | |
| [Parameter(Mandatory=$False, Position=1, HelpMessage="Enter a repository name")] | |
| [string]$Repo = $( Read-Host "Enter a repository name" ), | |
| [Parameter(Mandatory=$False,Position=2)] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #tool nuget:?package=NUnit.ConsoleRunner&version=3.4.0 | |
| #tool "nuget:?package=GitVersion.CommandLine" | |
| #tool nuget:?package=MSBuild.SonarQube.Runner.Tool | |
| #addin nuget:?package=Cake.Sonar | |
| #addin "nuget:?package=Cake.Incubator&version=3.0.0" | |
| ////////////////////////////////////////////////////////////////////// | |
| // ARGUMENTS | |
| ////////////////////////////////////////////////////////////////////// |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| ########################################################################## | |
| # This is the Cake bootstrapper script for Linux and OS X. | |
| # This file was downloaded from https://github.com/cake-build/resources | |
| # Feel free to change this file to fit your needs. | |
| ########################################################################## | |
| # Define directories. | |
| SCRIPT_DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd ) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <# | |
| .SYNOPSIS | |
| This is a Powershell script to bootstrap a Cake build. | |
| .DESCRIPTION | |
| This Powershell script will download NuGet if missing, restore NuGet tools (including Cake) | |
| and execute your Cake build script with the parameters you provide. | |
| .PARAMETER Target | |
| The build script target to run. | |
| .PARAMETER Configuration | |
| The build configuration to use. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env groovy | |
| pipeline { | |
| environment { | |
| MSBUILD14 = 'C:\\MSBuild\\14.0\\Bin\\MSBuild.exe' | |
| BUILD_FOLDER = ".\\dist" | |
| } | |
| agent { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env groovy | |
| // Nombre del servicio | |
| env.SERVICE_NAME = '__SERVICE_NAME__' | |
| //Completar para cada ambiente, nombre del servidor y carpeta de despliegue. | |
| env.SERVER_PROD = "__SERVER_NAME__" | |
| env.FOLDER_PROD = "__FOLDER__\\__SUBFOLDER__" | |
| env.SERVER_TEST = "__SERVER_NAME:__" |
NewerOlder