Beispiel #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;
 }
Beispiel #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();
 }
Beispiel #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();
 }
Beispiel #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;
 }
Beispiel #5
0
 /// <summary>
 /// Constructor that creates and instance of the class.
 /// </summary>
 public CallbackController()
 {
     _db = new NasBLL();
 }