public void SqlScriptsAreIdempotent() { // Arrange var sqlScripts = EventFlowEventStoresMsSql.GetSqlScripts().ToList(); // Act foreach (var _ in Enumerable.Range(0, 2)) { foreach (var sqlScript in sqlScripts) { _msSqlDatabase.Execute(sqlScript.Content); } } }
public void SetUp() { _testDatabase = MsSqlHelpz.CreateDatabase("index_fragmentation"); _testDatabase.Execute("CREATE TABLE IndexFragmentationString (Id nvarchar(250) PRIMARY KEY)"); _testDatabase.Execute("CREATE TABLE IndexFragmentationGuid (Id uniqueidentifier PRIMARY KEY)"); }