public ManageController(ApplicationUserManager userManager, ApplicationSignInManager signInManager)
 {
     UserManager   = userManager;
     SignInManager = signInManager;
     _context      = new NashGamingContext();
     _repo         = new NashGamingRepository();
 }
예제 #2
0
 public void Cleanup()
 {
     _context   = null;
     _repo      = null;
     _ladderSet = null;
 }
예제 #3
0
 public void Initialize()
 {
     _context   = new Mock <NashGamingContext>();
     _repo      = new NashGamingRepository(_context.Object);
     _ladderSet = new Mock <DbSet <Ladder> >();
 }
예제 #4
0
 public HomeController()
 {
     _context = new NashGamingContext();
     _repo    = new NashGamingRepository();
 }
예제 #5
0
 public void Initialize()
 {
     _context  = new Mock <NashGamingContext>();
     _repo     = new NashGamingRepository(_context.Object);
     _matchSet = new Mock <DbSet <NashGaming.Models.Match> >();
 }
예제 #6
0
 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;
 }
예제 #9
0
 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);
 }