Example #1
0
        public void Should_only_return_sessions_that_are_selected()
        {
            var sessions = SessionBuilder.CreateListWithSize(10)
                                .WhereTheFirst(5).IsSelected(true)
                                .AndTheNext(5).IsSelected(false)
                                .Build();

            var presenter = new MySchedulePresenter(sessions);

            var results = presenter.GetSessions();

            results.Count().ShouldBe(5);
            foreach (var result in results)
                result.IsSelected.ShouldBe(true);
        }
Example #2
0
 public void SetUp()
 {
     Presenter = new MySchedulePresenter(null);
 }