Class GeneralUnitTest
Inheritance
System.Object
GeneralUnitTest
Assembly: Albatross.Database.UnitTest.dll
Syntax
[TestFixture]
public class GeneralUnitTest
Properties
|
Improve this Doc
View Source
AlbatrossDb
Declaration
public Database AlbatrossDb { get; }
Property Value
|
Improve this Doc
View Source
MasterDb
Declaration
public Database MasterDb { get; }
Property Value
Methods
|
Improve this Doc
View Source
GetConnectionStringTest(String, String, Boolean, String, String)
Declaration
[TestOf(typeof(GetConnectionString))]
[TestCase(new object[]{"localhost", "content", true, null, null}, ExpectedResult = "Data Source=localhost;Initial Catalog=content;Integrated Security=True")]
[TestCase(new object[]{"localhost", "content", false, "jdoe", "welcome"}, ExpectedResult = "Data Source=localhost;Initial Catalog=content;User ID=jdoe;Password=welcome")]
public string GetConnectionStringTest(string server, string database, bool sspi, string username, string pwd)
Parameters
Type |
Name |
Description |
System.String |
server |
|
System.String |
database |
|
System.Boolean |
sspi |
|
System.String |
username |
|
System.String |
pwd |
|
Returns
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
GetProcedureDefinitionTest(String, String)
Declaration
[TestCase("ac", "createcompany", ExpectedResult = "")]
[TestOf(typeof(GetProcedureDefinition))]
public string GetProcedureDefinitionTest(string schema, string name)
Parameters
Type |
Name |
Description |
System.String |
schema |
|
System.String |
name |
|
Returns
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
GetProcedureTest(String, String)
Declaration
[TestOf(typeof(GetProcedure))]
[TestCase("dyn", "SetServiceType")]
[TestCase("dyn", "SetSvcReferenceArray")]
public void GetProcedureTest(string schema, string name)
Parameters
Type |
Name |
Description |
System.String |
schema |
|
System.String |
name |
|
|
Improve this Doc
View Source
GetSqlTypeTest(String)
Declaration
[TestOf(typeof(GetSqlType))]
[TestCase("int", ExpectedResult = "int")]
[TestCase("bigint", ExpectedResult = "bigint")]
public string GetSqlTypeTest(string name)
Parameters
Type |
Name |
Description |
System.String |
name |
|
Returns
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
GetTableIndexTest(String, String)
Declaration
[TestOf(typeof(ListTableIndex))]
[TestCase("dbo", "trade")]
public void GetTableIndexTest(string schema, string name)
Parameters
Type |
Name |
Description |
System.String |
schema |
|
System.String |
name |
|
|
Improve this Doc
View Source
GetTableTest(String, String)
Declaration
[TestOf(typeof(GetTable))]
[TestCase("dyn", "svc", ExpectedResult = "Svc")]
public string GetTableTest(string schema, string name)
Parameters
Type |
Name |
Description |
System.String |
schema |
|
System.String |
name |
|
Returns
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
ListProcedureParameterTest(String, String)
Declaration
[TestOf(typeof(ListProcedureParameter))]
[TestCase("dyn", "SetServiceType")]
[TestCase("dyn", "SetSvcReferenceArray")]
public void ListProcedureParameterTest(string schema, string name)
Parameters
Type |
Name |
Description |
System.String |
schema |
|
System.String |
name |
|
|
Improve this Doc
View Source
ListSqlTypeTest()
Declaration
[Test(TestOf = typeof(ListSqlType))]
public void ListSqlTypeTest()