public void Setup()
 {
     this._builder = new TestControllerBuilder();
     this._repository = MockRepository.GenerateMock<IRepository<IUser>>();
     this._runtimeSession = MockRepository.GenerateMock<IRuntimeSession>();
     this._sut = _builder.CreateController<SessionController>(this._runtimeSession, this._repository);
 }
 public void Setup()
 {
     this._builder = new TestControllerBuilder();
     this._runtimeSession = MockRepository.GenerateMock<IRuntimeSession>();
     this._bragRepository = MockRepository.GenerateMock<IRepository<IBrag>>();
     this._controller = _builder.CreateController<HomeController>(this._runtimeSession, this._bragRepository);
 }
        public void LoginToRuntimeSession()
        {
            login = new Login();
            login.EnableSecurityBoost = true;
            login.Login();
            login.ApplicationName = Resources.CUSTOM_MODULE_ID;
            login.Version         = "1.0";
            login.ValidateUser($"{Resources.CUSTOM_MODULE_ID}.exe", false);

            session = login.RuntimeSession;
        }
Exemplo n.º 4
0
 public ControllerTests()
 {
     this._builder = new TestControllerBuilder();
     this._runtimeSession = MockRepository.GenerateMock<IRuntimeSession>();
 }
Exemplo n.º 5
0
 public HomeController(IRuntimeSession runtimeSession)
 {
     _runtimeSession = runtimeSession;
 }
Exemplo n.º 6
0
 public PartialController(IRuntimeSession runtimeSession)
 {
     this._runtimeSession = runtimeSession;
 }
Exemplo n.º 7
0
 public BragController(IRuntimeSession runtimeSession, IRepository<IBrag> repository)
 {
     _runtimeSession = runtimeSession;
     _repository = repository;
 }
Exemplo n.º 8
0
 public HomeController(IRuntimeSession runtimeSession, IRepository<IBrag> bragRepository)
 {
     _runtimeSession = runtimeSession;
     _bragRepository = bragRepository;
 }
Exemplo n.º 9
0
 public SessionController(IRuntimeSession runtimeSession, IRepository<IUser> repository)
 {
     _runtimeSession = runtimeSession;
     _repository = repository;
 }