Skip to content

Instantly share code, notes, and snippets.

View ismusidhu's full-sized avatar

IsmailS ismusidhu

View GitHub Profile
@apolaskey
apolaskey / ninject-cheatsheet.cs
Last active September 26, 2023 21:24
Ninject Cheatsheet
// Backup from https://lukewickstead.wordpress.com/2013/01/18/ninject-cheat-sheet/
// **** DETERMINING WHICH CONSTRUCTOR TO USE ****
// The main DI pattern is Constructor Injection
// A known constructor parameter is one which has been explicitly bound
// An unknown constructor parameter is one which has not been explicitly bound even if it has a resolvable constructor the following order defines which constructor is used
// 1. User defined costructor marked with [Inject] attribute
// 2. The constructor with the most known bound parameters.
// 3. The default parameterless constructor
// **** PROPERTY / METHOD INJECTION
@ssg
ssg / MBUnit to NUnit.md
Last active March 13, 2017 08:19
MBUnit <-> NUnit migration cheat sheet.

This is a cheat sheet I prepared when testing migrations between MBUnit and NUnit. It only covers the areas we used so it's far from complete. It should give a good head start though.

MBUnit NUnit
[FixtureSetUp] [OneTimeSetUp]
[Row] [TestCase]
[Factory] [TestCaseSource] for test cases, [ValueSource] for individual parameters
[Column] [Values]
[SequentialJoin] [Sequential]
[CombinatorialJoin] [Combinatorial]
@tony4d
tony4d / p4merge4git.md
Created August 24, 2012 19:00
Setup p4merge as a visual diff and merge tool for git