public void SetUp()
 {
     taskService = Substitute.For <ITaskService>();
     view        = Substitute.For <ITasksView>();
     controller  = Substitute.For <IApplicationController>();
     presenter   = new TasksPresenter(controller, view, taskService, backupService);
 }
Exemplo n.º 2
0
        protected void Page_Load(object sender, EventArgs e)
        {
            _activityId = SpeechingUtil.ParseInt(Request.QueryString["aid"]);//TODO: QueryString or Session?!
            if (_activityId <= 0)
                _activityId = 1;//This is a temporary id that we know its in the database

            _tasksPresenter = new TasksPresenter(this);
            _tasksPresenter.GetAllTasks();
        }