コード例 #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;
 }
コード例 #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();
 }
コード例 #3
0
ファイル: HomeController.cs プロジェクト: gautetb/NAS
 /// <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();
 }
コード例 #4
0
ファイル: HomeController.cs プロジェクト: gautetb/NAS
 /// <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;
 }
コード例 #5
0
ファイル: CallbackController.cs プロジェクト: gautetb/NAS
 /// <summary>
 /// Constructor that creates and instance of the class.
 /// </summary>
 public CallbackController()
 {
     _db = new NasBLL();
 }