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