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; }
public ControllerTests() { this._builder = new TestControllerBuilder(); this._runtimeSession = MockRepository.GenerateMock<IRuntimeSession>(); }
public HomeController(IRuntimeSession runtimeSession) { _runtimeSession = runtimeSession; }
public PartialController(IRuntimeSession runtimeSession) { this._runtimeSession = runtimeSession; }
public BragController(IRuntimeSession runtimeSession, IRepository<IBrag> repository) { _runtimeSession = runtimeSession; _repository = repository; }
public HomeController(IRuntimeSession runtimeSession, IRepository<IBrag> bragRepository) { _runtimeSession = runtimeSession; _bragRepository = bragRepository; }
public SessionController(IRuntimeSession runtimeSession, IRepository<IUser> repository) { _runtimeSession = runtimeSession; _repository = repository; }