<commit_before>﻿using eFormSqlController;
//using Microsoft.WindowsAzure;
using NUnit.Framework;
using System;
//using System.Security.Cryptography.X509Certificates;

namespace eFormSDK.Integration.Tests
{
    [TestFixture]
    public abstract class DbTestFixture
    {
        protected MicrotingDbMs DbContext;
        protected string ConnectionString => @"data source=(LocalDb)\SharedInstance;Initial catalog=eformsdk-tests";


        [SetUp]
        public void Setup()
        {
            DbContext = new MicrotingDbMs(ConnectionString);
            DbContext.Database.CreateIfNotExists();

            DbContext.Database.Initialize(false);

            DoSetup();
        }

        [TearDown]
        public void TearDown()
        {
            DbContext.Database.Delete();
            DbContext.Database.CreateIfNotExists();

            DbContext.Database.Initialize(false);
            DbContext.Dispose();

        }

        public virtual void DoSetup() { }

        //static SubscriptionCloudCredentials getCredentials()
        //{
        //    string SubscriptionId = "";
        //    string CertificateBase64String = "";
        //    return new CertificateCloudCredentials(SubscriptionId, new X509Certificate2(Convert.FromBase64String(CertificateBase64String))); 
        //}
    }
}<commit_msg>Claning up a bit.<commit_after>﻿using eFormSqlController;
using NUnit.Framework;

namespace eFormSDK.Integration.Tests
{
    [TestFixture]
    public abstract class DbTestFixture
    {
        protected MicrotingDbMs DbContext;
        protected string ConnectionString => @"data source=(LocalDb)\SharedInstance;Initial catalog=eformsdk-tests";
        private static string authority = "https://login.microsoftonline.com/REPLACE_ME_GUID/oauth2/token";
        private static string azureSubscriptionId = "__AZURE_SUBSCRIPTION_ID__"; /* Azure Subscription ID */

        private static string location = "Data Center Location"; /* Location of server and location for database (eg. Australia East) */
        private static string edition = "Standard"; /* Databse Edition (eg. Standard)*/
        private static string requestedServiceObjectName = "Performance Level"; /* Name of Service Object (eg. S0) */

        private static string resourceGroupName = "Resource Group Name"; /* Name of Resource Group containing SQL Server */
        private static string serverName = "Server Name"; /* Name of SQL Server */
        private static string databaseName = "Database Name"; /* Name of Database */

        private static string domainName = "domain.name.com"; /* Tenant ID or AAD domain */

        /* Authentication variables from Azure Active Directory (AAD) */
        private static string clientId = "__CLIENT_ID__"; /* Active Directory Client ID */
        private static string clientSecret = "__CLIENT_SECRET__";
        private static string DirectoryId = "__DIRECTORY_ID__";
        private static string ApplicationId = "__APPLICATION_ID__";


        [SetUp]
        public void Setup()
        {
            DbContext = new MicrotingDbMs(ConnectionString);

            if (clientId != "__CLIENT_ID__")
            {

            }
            DbContext.Database.CreateIfNotExists();

            DbContext.Database.Initialize(false);

            DoSetup();
        }

        [TearDown]
        public void TearDown()
        {
            DbContext.Database.Delete();
            DbContext.Dispose();

        }

        public virtual void DoSetup() { }

    }
}
{'fraction_non_alphanumeric': 0.0908311910882605, 'fraction_numerical': 0.004284490145672665, 'mean_word_length': 2.5481256332320164, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 1, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4728957', 'n_tokens_mistral': 907, 'n_tokens_neox': 861, 'n_words': 231}