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.

34 lines
670 B

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