Exemplo n.º 1
0
        public void ReturnExpectedMicroLearning_WhenWhoIsUpNextIsCalled()
        {
            var nextPerson            = new Person("Andre");
            var nextDate              = Helper.GetNextValidDate();
            var expectedMicroLearning = new MicroLearning(nextPerson, nextDate);
            var queueOrganizer        = new QueueOrganizerBuilder().WithPerson(nextPerson).Build();

            var actual = queueOrganizer.WhoIsUpNext();

            actual.Should().BeEquivalentTo(expectedMicroLearning);
        }
Exemplo n.º 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);
        }