Esempio n. 1
0
        public SqlStorageTests()
        {
            _dbName = $"minion_test_db_{Guid.NewGuid().ToString().Replace("-", "")}";
            _conn   =
                "Server=.\\SQLExpress;Trusted_Connection=True;MultipleActiveResultSets=true;Integrated Security=SSPI;Pooling=false;";

            using (var connection = new SqlConnection(_conn))
            {
                connection.Execute("CREATE Database " + _dbName);
            }

            Store = new SqlStorage(DateService, $"Server=.\\SQLExpress;Database={_dbName};Trusted_Connection=True;MultipleActiveResultSets=true;Integrated Security=SSPI;Pooling=false;");

            Task.WaitAll(Store.InitAsync());
        }