public ManageController(ApplicationUserManager userManager, ApplicationSignInManager signInManager)
 {
     UserManager   = userManager;
     SignInManager = signInManager;
     _context      = new NashGamingContext();
     _repo         = new NashGamingRepository();
 }
 public void Cleanup()
 {
     _context   = null;
     _repo      = null;
     _ladderSet = null;
 }
 public void Initialize()
 {
     _context   = new Mock <NashGamingContext>();
     _repo      = new NashGamingRepository(_context.Object);
     _ladderSet = new Mock <DbSet <Ladder> >();
 }
 public HomeController()
 {
     _context = new NashGamingContext();
     _repo    = new NashGamingRepository();
 }
 public void Initialize()
 {
     _context  = new Mock <NashGamingContext>();
     _repo     = new NashGamingRepository(_context.Object);
     _matchSet = new Mock <DbSet <NashGaming.Models.Match> >();
 }
 public void Cleanup()
 {
     _context  = null;
     _repo     = null;
     _matchSet = null;
 }
示例#7
0
 public void Initialize()
 {
     _context   = new Mock <NashGamingContext>();
     _repo      = new NashGamingRepository(_context.Object);
     _inviteSet = new Mock <DbSet <TeamInvite> >();
 }
 public void Cleanup()
 {
     _context      = null;
     _challengeSet = null;
     _repo         = null;
 }
 public void Initialize()
 {
     _context = new Mock <NashGamingContext>();
     _repo    = new NashGamingRepository(_context.Object);
     _postSet = new Mock <DbSet <Posts> >();
 }
示例#10
0
 public void Cleanup()
 {
     _context = null;
     _repo    = null;
     _postSet = null;
 }
示例#11
0
 public void Cleanup()
 {
     _context   = null;
     _repo      = null;
     _leagueSet = null;
 }
 public ProfileController()
 {
     _repo    = new NashGamingRepository();
     _context = new NashGamingContext();
 }
示例#13
0
 public AccountController()
 {
     _repo    = new NashGamingRepository();
     _context = new NashGamingContext();
 }
示例#14
0
 public void Initialize()
 {
     _context = new Mock <NashGamingContext>();
     _repo    = new NashGamingRepository(_context.Object);
     _teamSet = new Mock <DbSet <MainTeam> >();
 }
示例#15
0
 public void Cleanup()
 {
     _context   = null;
     _repo      = null;
     _inviteSet = null;
 }
示例#16
0
 public void Cleanup()
 {
     _context = null;
     _repo    = null;
     _teamSet = null;
 }
 public void Initialize()
 {
     _context      = new Mock <NashGamingContext>();
     _challengeSet = new Mock <DbSet <Challenge> >();
     _repo         = new NashGamingRepository(_context.Object);
 }