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.Reflection; | |
using System.Security; | |
// General Information | |
[assembly: AssemblyTitle ("My Utility")] | |
[assembly: AssemblyDescription ("A neat program that does a few useful things.")] | |
// Security | |
// | |
// All code is transparent. |
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; | |
using System.Security.Principal; | |
using System.Web; | |
using System.Web.Mvc; | |
using System.Web.Routing; | |
using Moq; | |
namespace SharpJS.Web.Testing | |
{ |
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.IO; | |
namespace SharpJS.Web | |
{ | |
public interface IUrlToken | |
{ | |
void WriteTo (BinaryWriter writer); | |
void ReadFrom (BinaryReader reader); | |
} | |
} |
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 SharpJS.Data.Entity.Testing | |
{ | |
public abstract class FakeDbContext | |
{ | |
protected FakeDbContext() { } | |
public abstract void SaveChanges (); | |
public abstract void Dispose (); | |
} | |
} |
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
private void SaveEntityFrameworkProxyAssembly(params Type[] types) | |
{ | |
var factoryType = typeof(ObjectContext).Assembly.GetType( | |
"System.Data.Objects.Internal.EntityProxyFactory", | |
throwOnError: true); | |
var privateStaticFlags | |
= BindingFlags.Static | |
| BindingFlags.NonPublic; |
NewerOlder