public void Should_get_two_most_recent_visitors()
        {
            var config = new DataConfig();
            config.PerformStartup();

            Visitor visitor1 =
                CreateVisitor(new DateTime(2000, 1, 1));
            Visitor visitor2 =
                CreateVisitor(new DateTime(2000, 1, 2));
            Visitor visitor3 =
                CreateVisitor(new DateTime(2000, 1, 3));
            config.StartSession();
            using (
                ISession session1 =
                    new SessionCache().GetSession())
            {
                session1.SaveOrUpdate(visitor1);
                session1.SaveOrUpdate(visitor2);
                session1.SaveOrUpdate(visitor3);
                session1.Flush();
                config.EndSession();
            }

            config.StartSession();

            var repository = new VisitorRepository();
            Visitor[] recentVisitors =
                repository.GetRecentVisitors(2);
            config.EndSession();

            Assert.That(recentVisitors.Length, Is.EqualTo(2));
            IEnumerable<Guid> idList =
                recentVisitors.Select(x => x.Id);
            Assert.That(idList.Contains(visitor3.Id), Is.True);
            Assert.That(idList.Contains(visitor2.Id), Is.True);
            Assert.That(idList.Contains(visitor1.Id), Is.False);
        }