public void OffsetDateTime_returns_expected_results(NodaTimeOffsetDateTime nodaTime)
        {
            PopulateDatabase(sessionFactory, nodaTime);

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

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

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