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; | |
namespace ClassLibrary | |
{ | |
public interface IDependency | |
{ | |
void SomeMethod(); | |
} | |
public class MyClass |
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 MyClass | |
{ | |
private readonly IDependency dependency; | |
private readonly Func<IUnitOfWork> StartNewUnitOfWork; | |
public MyClass(Func<IUnitOfWork> unitOfWorkProvider), | |
IDependency dependency, | |
{ | |
this.dependency= dependency; | |
this.StartNewUnitOfWork = unitOfWorkProvider; |
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; | |
namespace ClassLibrary | |
{ | |
public interface IDependency | |
{ | |
void SomeMethod(string s); | |
} | |
public class MyClass |
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 System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Text.RegularExpressions; | |
using System.Globalization; | |
using ServiceStack.ServiceInterface.Auth; | |
using ServiceStack.Common; | |
using NHibernate; |
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
{ | |
item: { | |
id: "2950a2d262a34ffcae82a2d0015af091", | |
title: "title1", | |
creator: "creator1", | |
edition: "edition1" | |
} | |
} |
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 Test_Barge() | |
{ | |
var initialGrid = new char[,] | |
{ | |
{'.', '.', '.', '.', '.', '.'}, | |
{'.', '.', '*', '.', '.', '.'}, | |
{'.', '*', '.', '*', '.', '.'}, | |
{'.', '.', '*', '.', '*', '.'}, | |
{'.', '.', '.', '*', '.', '.'}, |
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 NUnit.Framework; | |
namespace Tests | |
{ | |
[TestFixture] | |
public class Test | |
{ | |
public class Temp | |
{ |