Exemplo n.º 1
0
 /// <summary>
 /// Constructor that creates and instance of the user logic stub and a fake AuthenticatedUser for unit testing.
 /// </summary>
 public UserController(INasLogic stub)
 {
     _currentUser = new FakeAuthenticatedUser();
     _bll         = stub;
 }
Exemplo n.º 2
0
 /// <summary>
 /// This constructor creates and instance of the class that uses the actual BLL and AuthenticatedUser for extracting information from the HttpContext.
 /// </summary>
 public UserController()
 {
     _bll         = new NasBLL();
     _currentUser = new AuthenticatedUser();
 }
Exemplo n.º 3
0
 /// <summary>
 /// This constructor creates and instance of the class that uses the actual BLL and AuthenticatedUser for extracting information from the HttpContext.
 /// </summary>
 public HomeController()
 {
     _currentUser = new AuthenticatedUser();
     _db          = new NasBLL();
 }
Exemplo n.º 4
0
 /// <summary>
 /// Constructor that creates and instance of the user logic stub and a fake AuthenticatedUser for unit testing.
 /// </summary>
 public HomeController(INasLogic stub)
 {
     _currentUser = new FakeAuthenticatedUser();
     _db          = stub;
 }
Exemplo n.º 5
0
 /// <summary>
 /// Constructor that creates and instance of the class.
 /// </summary>
 public CallbackController()
 {
     _db = new NasBLL();
 }