public void Period_returns_expected_results(NodaTimePeriod nodaTime)
        {
            PopulateDatabase(sessionFactory, nodaTime);

            using (var session = sessionFactory.OpenSession())
            {
                var sut = session.Load <NodaTimePeriod>(nodaTime.Id);

                sut.Period.Should().BeEquivalentTo(nodaTime.Period);
            }

            CleanDatabase(sessionFactory);
        }
 private static void PopulateDatabase(ISessionFactory sessionFactory, NodaTimePeriod nodaTime)
 {
     using var session = sessionFactory.OpenSession();
     session.Save(nodaTime);
     session.Flush();
 }