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(); }
public void TestInitializeNHibernate() { this.SessionProvider = new SessionProviderNH(); this.Session = this.SessionProvider.SessionFactory.OpenSession(); }