public void Init() { if (!SimpleLookups.IsInitialized) { SimpleLookups.Initialize(ConnectionStrings.Default); SimpleLookups.AddConnectionString("Other", ConnectionStrings.Other); } }
public void Init() { if (!SimpleLookups.IsInitialized) { SimpleLookups.Initialize(ConnectionStrings.Default, "Id4", "Name4", "Description4", "Code4", "Active4", false, true, 1800); SimpleLookups.AddConnectionString("Other", ConnectionStrings.Other); } }
public void SimpleLookups_Initialize_ProvideWhitespaceConnectionString_ThrowsInvalidOperationException() { SimpleLookups.Initialize(" "); Assert.Fail(); }
public void SimpleLookups_Initialize_ProvideNullConnectionString_ThrowsInvalidOperationException() { SimpleLookups.Initialize(null); Assert.Fail(); }
public void SimpleLookups_Initialize_AlreadyInitializedTryToInitializeAgain_ThrowsInvalidOperationException() { SimpleLookups.Initialize(ConnectionStrings.Default); Assert.Fail(); }