Esempio n. 1
0
        public void TestInitialize()
        {
            var settings = FluentJsonNet.JsonMaps.GetDefaultSettings(typeof(UnitTestBase).Assembly.GetTypes())();

            settings.Converters         = settings.Converters.Concat(new[] { new EitherJsonConverter(), }).ToList().AsReadOnly();
            JsonConvert.DefaultSettings = () => new JsonSerializerSettings
            {
                Converters       = settings.Converters,
                ContractResolver = settings.ContractResolver,
            };
            this.SessionProvider = new SessionProviderNH();
            this.Session         = this.SessionProvider.SessionFactory.OpenSession();
        }
Esempio n. 2
0
 public void TestInitializeNHibernate()
 {
     this.SessionProvider = new SessionProviderNH();
     this.Session         = this.SessionProvider.SessionFactory.OpenSession();
 }