- Set Up Solution
- Add global.json using dotnet sdks
- Add Directory.Build.props
- Push to GitHub
- Add a license
- Add Analyzers
- dotnet watch run
- dotnet outdated
- Configure Functional Tests
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 static void waitForPageLoad(WebDriver drv) { | |
sleep(50); // Make sure new page init has started... | |
try { | |
(new WebDriverWait(drv, 5)) | |
.until(new ExpectedCondition<Boolean>() { | |
public Boolean apply(WebDriver d) { | |
return ((JavascriptExecutor)d).executeScript("return document.readyState").equals("complete"); | |
} | |
}); | |
} catch (TimeoutException ex) { |
- http://stackoverflow.com/questions/804115 (
rebase
vsmerge
). - https://www.atlassian.com/git/tutorials/merging-vs-rebasing (
rebase
vsmerge
) - https://www.atlassian.com/git/tutorials/undoing-changes/ (
reset
vscheckout
vsrevert
) - http://stackoverflow.com/questions/2221658 (HEAD^ vs HEAD~) (See
git rev-parse
) - http://stackoverflow.com/questions/292357 (
pull
vsfetch
) - http://stackoverflow.com/questions/39651 (
stash
vsbranch
) - http://stackoverflow.com/questions/8358035 (
reset
vscheckout
vsrevert
)
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
<?xml version="1.0" encoding="utf-8"?> | |
<CodeSnippets | |
xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet"> | |
<CodeSnippet Format="1.0.0"> | |
<Header> | |
<Title></Title> | |
</Header> | |
<Snippet> | |
<Code Language=""> | |
<![CDATA[]]> |
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
<?xml version="1.0" encoding="utf-8"?> | |
<CodeSnippets | |
xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet"> | |
<CodeSnippet Format="1.0.0"> | |
<Header> | |
<Title>Unit Test Stub</Title> | |
<Description>Stub template for unit test</Description> | |
<Shortcut>uts</Shortcut> | |
</Header> | |
<Snippet> |
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
using System.Text; | |
using System.Net.Http; | |
using Newtonsoft.Json.Linq; | |
using Newtonsoft.Json; | |
namespace MyPaymentApp | |
{ | |
class Program | |
{ | |
static string securityCode = "dhacBUCadH9BpVcGluemGneEk3Fctc3jXawG2dba51K2xnlqOqyzVg=="; |
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 static class Operacion | |
{ | |
public const string ExtensionCredito = "Extension de Credito" ; | |
public const string Pago = "Pago Hecho" ; | |
public const string VentaActivo = "Venta de Activos" ; | |
} | |
//Asi podemos usar la funcionalidad de esta manera: | |
if (proceso == Operacion.ExtensionCredito) |
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
//Ejemplo A | |
public enum TipoUsuario | |
{ | |
Admin, | |
User | |
} | |
//Para verificar un seting | |
if (tipoUsuario == TipoUsuario.Admin) | |
{ |
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
//Para verificar algun seting | |
if (tipoDeUsuario == "Admin") | |
{ | |
EsAdmin = true; | |
} | |
//O para definir un proceso dentro de una funcion | |
if (proceso == "ExtensionCredito") | |
{ | |
calcularInteres = true; |
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 static class OperationName | |
{ | |
public const string CreditExtension = "Credit Extension" ; | |
public const string Payment = "Payment Made" ; | |
public const string SaleAsset = "Sale Assets" ; | |
} | |
//That way we can use them in the following way: | |
if (process == OperationName.CreditExtension) |
NewerOlder