public void ReturnTheCorrectPresenterIfOneIsAdded() { var expected = new Entities.Presenter() { Id = Int32.MaxValue.GetRandom() }; var actualSession = new SessionBuilder() .AddPresenter(expected) .Build(Int32.MaxValue.GetRandom()); Assert.Equal(expected.Id, actualSession.Presenters.Single().Id); }
public void ReturnASinglePresenterIfOneIsAdded() { var expected = new Entities.Presenter() { Id = Int32.MaxValue.GetRandom() }; var actualSession = new SessionBuilder() .AddPresenter(expected) .Build(Int32.MaxValue.GetRandom()); Assert.Single(actualSession.Presenters); }