public void ThenTheEventsAreCleared()
        {
            _list.Add(_commitment, _apprenticeship, _event, _effectiveFrom, _effectiveTo);
            _list.Add(_commitment, _apprenticeship, _event, _effectiveFrom, _effectiveTo);

            _list.Clear();

            _list.Events.Should().BeEmpty();
        }
Beispiel #2
0
        public void ThenTheEventIsAdded()
        {
            _list.Add(_commitment, _apprenticeship, _event, _effectiveFrom, _effectiveTo);

            _list.Events.Count.Should().Be(1);
            _list.Events.First().Apprenticeship.Should().Be(_apprenticeship);
            _list.Events.First().Commitment.Should().Be(_commitment);
            _list.Events.First().Event.Should().Be(_event);
            _list.Events.First().EffectiveFrom.Should().Be(_effectiveFrom);
            _list.Events.First().EffectiveTo.Should().Be(_effectiveTo);
        }