public void Given_Configuration_And_Filename_Then_Schema_Is_Exported_ToFile() { var nConfig = new NConfiguration(); var configuration = nConfig.ConfigureDefault("Azure"); nConfig.CreateSchema(configuration, @"c:\schemaexport.sql"); }
public void Given_ConnectionName_And_Not_Testing_When_ConfigureDefault_Then_ISessionFactory_Is_Not_Null() { var nConfig = new NConfiguration(); var sessionConfiguration = nConfig.ConfigureDefault(connectionKeyStringKey: "Azure", isTesting: false); Assert.IsNotNull(sessionConfiguration); }
public void Given_Invalid_ConnectionString_Then_NullReferenceException_Is_Thrown() { var nConfig = new NConfiguration(); Assert.That( () => nConfig.ConfigureDefault(connectionKeyStringKey: "NonExistingConnectionString", isTesting: false), Throws.TypeOf <NullReferenceException>() ); }