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
583 B

10 years ago
  1. using Microsoft.AspNet.Identity.EntityFramework;
  2. using Rhino.Mocks;
  3. using Sevomin.Models;
  4. namespace Sevomin.Tests
  5. {
  6. public class FakeDbContext
  7. {
  8. private static IdentityDbContext<User> _dbcontext;
  9. static FakeDbContext()
  10. {
  11. Init();
  12. }
  13. internal static void Init()
  14. {
  15. _dbcontext = MockRepository.GenerateStub<IdentityDbContext<User>>("Test");
  16. }
  17. internal static IdentityDbContext<User> Instance()
  18. {
  19. return _dbcontext;
  20. }
  21. }
  22. }