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 MyFactAttribute : FactAttribute | |
{ | |
public MyFactAttribute(params string[] scenarios) | |
{ | |
if(!scenarios.Any() || IntegrationTestsRuntime.Environment.SupportsEverything) | |
return; | |
if (!scenarios.All(r => IntegrationTestsRuntime.Environment.HasSupportFor(r))) | |
Skip = string.Format("TestEnvironment does not support ALL test scenario(s): '{0}'.", string.Join("|", scenarios)); | |
} |
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
http://www.dustin.se/product/5010746863/sp-pov-buoy/ | |
http://www.dustin.se/product/5010640729/sandisk-microsdxc-ultra-class-10-64-gb/ | |
http://www.dustin.se/product/5010667590/gopro-hero3-black-edition/ | |
http://www.dustin.se/product/5010672749/gopro-caps-doors-hero3/ |
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
using System; | |
using System.Diagnostics; | |
using System.Runtime.CompilerServices; | |
namespace DebugVsRelease | |
{ | |
class Constants | |
{ | |
public const int Itterations = 1000000; | |
} |
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
using System; | |
using System.Collections.Concurrent; | |
using Castle.DynamicProxy; | |
using MongoDB.Bson; | |
namespace FunnyBunny | |
{ | |
class Program | |
{ | |
static void Main(string[] args) |
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
JSON: | |
{"StructureId":"45748284fbfce011910a544249037e42","Names":{"First":"Daniel","Last":"Wertheim"},"Values":{"Value":{"Is":99},"Guid":"19adfa6da12748e09291aeb75e8ca23c","Int":42,"Long":142,"String":"String in ValuesContainer.","Double":1.33,"Decimal":3.14,"Bool":true},"NullValuesContainer":{"Guid":"60d977f995fc40fd9a7e6827e920370f","Int":42,"Long":142,"String":"String in NullValuesContainer.","Double":1.33,"Decimal":3.14,"Bool":true},"NullValuesContainerWithNulls":{},"ValuesInArray":[{"Is":1},{"Is":2},{"Is":3}],"ValuesInIList":[{"Is":31},{"Is":32},{"Is":33}],"ValuesInList":[{"Is":41},{"Is":42},{"Is":43}],"ValuesInISet":[{"Is":11},{"Is":12},{"Is":13}],"ValuesInHashSet":[{"Is":21},{"Is":22},{"Is":23}]} | |
NOTE! ValuesInIList is deserialized to member but ValuesInISet is not. | |
public class MyClass | |
{ | |
public MyClass() {} | |
... ... ... |
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 interface IDbDataTypeTranslator | |
{ | |
string ToDbType(IIndexAccessor indexAccessor); | |
string ToDbType(Type dataType); | |
} |
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
-- C# Predicate: item.SortOrder == 2 || (item.SortOrder == 1 && item.StringValue == "B").Take(2).SortBy(item => item.StringValue) | |
-- Existing rows | |
-- {"StructureId":"208fad84b608e111b21c544249037e42","SortOrder":2,"StringValue":"D"} | |
-- {"StructureId":"218fad84b608e111b21c544249037e42","SortOrder":2,"StringValue":"C"} | |
-- {"StructureId":"228fad84b608e111b21c544249037e42","SortOrder":1,"StringValue":"B"} | |
-- {"StructureId":"238fad84b608e111b21c544249037e42","SortOrder":1,"StringValue":"A"} | |
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 AssemblyInitializer : IAssemblyContext | |
{ | |
private static bool _isInitialized; | |
public void OnAssemblyStart() | |
{ | |
if (_isInitialized) | |
return; | |
_isInitialized = true; |
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
#v0.12 | |
# Dev stuff | |
[Aa]pp_[Dd]ata/ | |
[Bb]uild/ | |
[Bb]uilds/ | |
[Oo]bj/ | |
[Bb]in/ | |
[D]ebug/ | |
[Tt]est[Rr]esult/ | |
[Tt]emp/ |
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 static class Factory<T> where T : class | |
{ | |
private static readonly Func<T> FactoryFn; | |
static Factory() | |
{ | |
//FactoryFn = CreateUsingActivator(); | |
FactoryFn = CreateUsingLambdas(); | |
} |
OlderNewer