예제 #1
0
        public void PutPersonSkippedAtTheBackOfTheQueue_WhenSkipMeIsCalled()
        {
            var person1        = new Person("Andre");
            var person2        = new Person("Amanda");
            var queueOrganizer = new QueueOrganizerBuilder().WithPerson(person1).WithPerson(person2).Build();

            queueOrganizer.SkipMe();

            var actual = queueOrganizer.LookAtFullQueue().Last().Name;

            actual.Should().Be(person1.Name);
        }
예제 #2
0
        public void SkipPerson_WhenSkipMeIsCalled()
        {
            var person1               = new Person("Andre");
            var person2               = new Person("Amanda");
            var expectedDate          = Helper.GetNextValidDate();
            var expectedMicroLearning = new MicroLearning(person2, expectedDate);
            var queueOrganizer        = new QueueOrganizerBuilder().WithPerson(person1).WithPerson(person2).Build();

            queueOrganizer.SkipMe();

            var actual = queueOrganizer.WhoIsUpNext();

            actual.Should().BeEquivalentTo(expectedMicroLearning);
        }