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
[Test] | |
public void Can_deposit_positive_amounts() | |
{ | |
string name = "Account Name"; | |
string description = "Account Description"; | |
decimal openingBalance = 2500m; | |
decimal amount = 1000m; | |
// Given account | |
var account = new Account(name, description, openingBalance); |
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
private Account _account; | |
private decimal _openingBalance = 2500m; | |
private decimal _positiveAmount = 1000m; | |
private void Given_account_with_positive_balance() | |
{ | |
string name = "Account Name"; | |
string description = "Account Description"; | |
_account = new Account(name, description, _openingBalance); |
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; | |
using Ninject; | |
using Ninject.Parameters; | |
using NUnit.Framework; | |
namespace NinjectExample | |
{ | |
[TestFixture] | |
public class NinjectTests | |
{ |
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
#---BEGIN--- | |
class TaxSlice | |
#---BEGIN--- | |
constructor: (min, max, rate) -> | |
if min is null | |
throw new Error "null value is not acceptable for min" | |
if min >= max and max is not null | |
throw new Error "min cannot be greater than or equal max" |
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
//#define UsingStringEnumConverter | |
using System; | |
#if UsingStringEnumConverter | |
using Newtonsoft.Json.Converters; | |
#endif | |
using NUnit.Framework; | |
namespace Newtonsoft.Json.Tests.Converters | |
{ |
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
Achievement | |
- Unless you try to do something beyond what you have already mastered, you will never grow. | |
Belief | |
- If you do not believe in yourself, Chances are that no body will either. | |
Character | |
- We must adjust to an ever changing road while holding onto our unchanging principles. | |
Courage |
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 IXmlCustomSerializer | |
{ | |
string Serialize<T>(T input); | |
T Deserialize<T>(string input); | |
} | |
public class XmlCustomSerializer : IXmlCustomSerializer | |
{ | |
private XmlSerializer _serializer; |
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
bracketstestdrive@0.0.0 C:\temp\brackets-testdrive | |
+-- grunt@0.4.2 | |
¦ +-- async@0.1.22 | |
¦ +-- coffee-script@1.3.3 | |
¦ +-- colors@0.6.2 | |
¦ +-- dateformat@1.0.2-1.2.3 | |
¦ +-- eventemitter2@0.4.13 | |
¦ +-- exit@0.1.2 | |
¦ +-- findup-sync@0.1.2 | |
¦ ¦ +-- lodash@1.0.1 |
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
# Gitin & Gitout Workarounds | |
$activeRepo = ".git" | |
$inactiveRepo = "project.git" | |
Function Rename-GitRepositoryToStart | |
{ | |
$curPath = Join-Path $(Get-Location) $inactiveRepo | |
$newPath = Join-Path $(Get-Location) $activeRepo | |
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
syntax on | |
filetype plugin indent on | |
:set shiftwidth=2 tabstop=2 | |
:set autoindent expandtab | |
:set ruler | |
:set hlsearch |
OlderNewer