public void Should_return_empty_list_for_day_4() { // Arrange var sessions = SessionBuilder.CreateListWithSize(10) .WhereTheFirst(10).HasDay(2) .Build(); Presenter = new SessionsPresenter(sessions, 1); // Act var results = Presenter.GetSessionsForDay(4); // Assert results.Count().ShouldBe(0); }
public void Should_contain_valid_sessions_for_day_1() { // Arrange var sessions = SessionBuilder.CreateListWithSize(10) .WhereTheFirst(5).HasDay(1) .AndTheNext(5).HasDay(2) .Build(); Presenter = new SessionsPresenter(sessions, 1); // Act var results = Presenter.GetSessionsForDay(1); // Assert results.Count().ShouldBe(5); foreach (var session in results) session.Day.ShouldBe(1); }