You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

29 lines
554 B

using Microsoft.AspNet.Identity.EntityFramework;
using Rhino.Mocks;
using Sevomin.Models;
namespace Sevomin.Tests
{
public class FakeDbContext
{
private static IdentityDbContext<User> _dbcontext;
static FakeDbContext()
{
Init();
}
internal static void Init()
{
_dbcontext = MockRepository.GenerateStub<IdentityDbContext<User>>("Test");
}
internal static IdentityDbContext<User> Instance()
{
return _dbcontext;
}
}
}