Class ArasUnitTestBase
Base class for Aras unit tests using Microsofts UnitTestFramework
Inheritance
System.Object
System.MarshalByRefObject
System.ContextBoundObject
MSTestHacks.TestBase
ArasUnitTestBase
Inherited Members
MSTestHacks.TestBase.TestContext
System.MarshalByRefObject.MemberwiseClone(System.Boolean)
System.MarshalByRefObject.GetLifetimeService()
System.MarshalByRefObject.InitializeLifetimeService()
System.MarshalByRefObject.CreateObjRef(System.Type)
Namespace: BitAddict.Aras.Test
Assembly: BitAddict.Aras.dll
Syntax
public class ArasUnitTestBase : TestBase
Properties
Connection
Aras server connection
Declaration
protected static HttpServerConnection Connection { get; }
Property Value
Type | Description |
---|---|
Aras.IOM.HttpServerConnection |
Innovator
Current Innovator instance, use to talk to aras. Connects to DevelopmentInstance DB
Declaration
protected static Innovator Innovator { get; }
Property Value
Type | Description |
---|---|
Aras.IOM.Innovator |
LogFolder
Folder where logs are stored
Declaration
protected static string LogFolder { get; }
Property Value
Type | Description |
---|---|
System.String |
LoginItem
Item returned by login
Declaration
protected static Item LoginItem { get; }
Property Value
Type | Description |
---|---|
Aras.IOM.Item |
TempItems
Temporary items to be removed at end of test
Declaration
public static List<Item> TempItems { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<Aras.IOM.Item> |
Methods
AssemblyInitialize(TestContext)
Sets up logging and initializes global state
Declaration
[AssemblyInitialize]
public static void AssemblyInitialize(TestContext cxt)
Parameters
Type | Name | Description |
---|---|---|
Microsoft.VisualStudio.TestTools.UnitTesting.TestContext | cxt |
ClassCleanup()
Closes connection when no refs remain
Declaration
[ClassCleanup]
public static void ClassCleanup()
ClassInitialize(TestContext)
Connects to an Aras Instance
Declaration
[ClassInitialize]
public static void ClassInitialize(TestContext ctx)
Parameters
Type | Name | Description |
---|---|---|
Microsoft.VisualStudio.TestTools.UnitTesting.TestContext | ctx |
Exceptions
Type | Condition |
---|---|
ArasException |
Cleanup()
REmoves temporary items added to TempItems
Declaration
[TestCleanup]
public void Cleanup()