This file contains 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
# Install sonarqube scanner / reporter | |
dotnet tool install --global dotnet-sonarscanner | |
# Install dotnet tools to generate test report | |
dotnet tool install --global coverlet.console | |
dotnet add package coverlet.msbuild | |
# Start sonarqube process | |
dotnet build-server shutdown | |
dotnet sonarscanner begin /o:${SONAR_ORG_KEY} /k:${SONAR_PROJECT_KEY} /v:${VERSION} /d:sonar.host.url=https://sonarcloud.io /d:sonar.login=${SONAR_TOKEN} /d:sonar.cs.opencover.reportsPaths="opencover.xml" |
This file contains 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
# Download codeclimate test reporter | |
curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./codeclimate-test-reporter | |
chmod +x ./codeclimate-test-reporter | |
# Install dotnet tools to generate test report | |
dotnet tool install --global coverlet.console | |
dotnet add package coverlet.msbuild | |
# Start codeclimate process | |
./codeclimate-test-reporter before-build |
This file contains 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 CreditCard | |
{ | |
public bool Pay(int amount) | |
{ | |
// do something | |
} | |
} | |
public class Person | |
{ |
This file contains 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 PaymentService : IPaymentService | |
{ | |
private readonly IPaymentRepository PaymentRepository; | |
private readonly INotificationService NotificationService; | |
private readonly IBankService BankService; | |
public PaymentService( | |
IPaymentRepository paymentRepository, |
This file contains 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 interface ITalkative | |
{ | |
void Speak(string message); | |
} | |
public interface IMovable | |
{ | |
void Move(long x, long y, long z); | |
} |
This file contains 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
// models for example | |
public class SendEmailModel | |
{ | |
public string Content { get; set; } | |
public string Email { get; set; } | |
} | |
public class SendEmailResult |
This file contains 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
// users?page=1&size=10 | |
{ | |
"items" : [ | |
{ | |
// ... | |
"links": [ | |
{ | |
"label": "Deletar Usuário", |
This file contains 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
{ | |
"firstName": "John", | |
"lastName": "Smith", | |
"age": 25, | |
"address": | |
{ | |
"streetAddress": "21 2nd Street", | |
"city": "New York", | |
"state": "NY", | |
"postalCode": "10021" |
This file contains 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
(function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u="function"==typeof require&&require,i=0;i<t.length;i++)o(t[i]);return o}return r})()({},{},[]) |
This file contains 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
/* | |
* jsrsasign(all) 10.5.8 (2022-02-25) (c) 2010-2021 Kenji Urushima | kjur.github.io/jsrsasign/license | |
*/ | |
/*! CryptoJS v3.1.2 core-fix.js | |
* code.google.com/p/crypto-js | |
* (c) 2009-2013 by Jeff Mott. All rights reserved. | |
* code.google.com/p/crypto-js/wiki/License | |
* THIS IS FIX of 'core.js' to fix Hmac issue. | |
* https://code.google.com/p/crypto-js/issues/detail?id=84 |
NewerOlder