public void Test_Get_UserId_FirebirdSql() { DbConnectionStringBuilder builder = new DbConnectionStringBuilder() { ConnectionString = firebirdSqlConnectionString }; object result = EFUtil.GetUserId(builder); Assert.AreEqual("SYSDBA", result.ToString()); }
public void Test_Get_UserId_Sqlite() { DbConnectionStringBuilder builder = new DbConnectionStringBuilder() { ConnectionString = sqliteConnectionString }; object result = EFUtil.GetUserId(builder); Assert.IsNull(result); }
public void Test_Get_UserId_PostgreSql() { DbConnectionStringBuilder builder = new DbConnectionStringBuilder() { ConnectionString = postgreSqlConnectionString }; object result = EFUtil.GetUserId(builder); Assert.AreEqual("postgres", result.ToString()); }
public void Test_Get_UserId_SqlServer() { DbConnectionStringBuilder builder = new DbConnectionStringBuilder() { ConnectionString = sqlServerConnectionString }; object result = EFUtil.GetUserId(builder); Assert.AreEqual("myUsername", result.ToString()); }