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 QueryingFindingEntities | |
{ | |
[Fact] | |
public void FindingEntityByPrimaryKey() | |
{ | |
using (var context = new BlogContext()) | |
{ | |
int execuedCount = 0; | |
context.RegisterCallbackStateChanged(ConnectionState.Open, () => execuedCount++); |
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 SerializableMultidimensionalArray : IXmlSerializable | |
{ | |
private readonly int[,] array = new int[3, 2]; | |
public int this[int i, int j] | |
{ | |
get | |
{ | |
return this.array[i, j]; | |
} |
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
type Exception report | |
message | |
description The server encountered an internal error () that prevented it from fulfilling this request. | |
exception | |
org.springframework.web.util.NestedServletException: Request processing failed; nested exception is org.springframework.dao.DataIntegrityViolationException: could not execute statement; SQL [n/a]; constraint [null]; nested exception is org.hibernate.exception.ConstraintViolationException: could not execute statement | |
org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:894) |
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.Generic; | |
using System.Linq.Expressions; | |
using System.Reflection; | |
using Xunit; | |
namespace ClassLibrary1 | |
{ | |
public class CollectingPropertiesTest | |
{ |
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
namespace Jwc.MoqExtensions | |
{ | |
using Moq; | |
using System; | |
using System.Linq; | |
using System.Linq.Expressions; | |
using System.Reflection; | |
using Xunit; | |
public interface IFoo |
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
namespace Jwc.Experiment.Xunit | |
{ | |
using System; | |
using System.Linq; | |
using System.Linq.Expressions; | |
using System.Reflection; | |
using Moq; | |
public static class Mocked | |
{ |
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
namespace ArticleHarbor.DomainModel | |
{ | |
using System; | |
using System.Collections; | |
using System.Collections.Generic; | |
using System.Collections.ObjectModel; | |
using System.Data.Entity; | |
using System.Data.Entity.Infrastructure; | |
using System.Linq; | |
using System.Linq.Expressions; |
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 IPageViewTracker | |
{ | |
IDisposable Track(Page page); | |
} | |
public class NamedPageViewTracker : IPageViewTracker | |
{ | |
public NamedPageViewTracker( | |
IPageViewTracker innerTacker, IPageViewNameProvider provider) | |
{ |
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 IFactory<T> | |
{ | |
T Create(); | |
} | |
public class CacheFactory<T> : IFactory<T> | |
{ | |
private T cached; | |
private readonly object syncLook = new object(); |
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; | |
namespace ClassLibrary3 | |
{ | |
public interface IProduct | |
{ | |
} | |
public class Foo : IProduct | |
{ |
OlderNewer