Class MockInnovator
Mocked wrapper for innovator that can return fake values on some queries. Expand functionality as required by tests.
Inheritance
System.Object
Aras.IOM.Innovator
MockInnovator
Inherited Members
Aras.IOM.Innovator.applyAML(System.String)
Aras.IOM.Innovator.applyMethod(System.String, System.String)
Aras.IOM.Innovator.newXMLDocument()
Aras.IOM.Innovator.getConnection()
Aras.IOM.Innovator.getI18NSessionContext()
Aras.IOM.Innovator.getNewID()
Aras.IOM.Innovator.getNextSequence(System.String)
Aras.IOM.Innovator.newItem()
Aras.IOM.Innovator.newItem(System.String)
Aras.IOM.Innovator.newItem(System.String, System.String)
Aras.IOM.Innovator.getUserID()
Aras.IOM.Innovator.getUserAliases()
Aras.IOM.Innovator.getFileUrl(System.String, Aras.IOM.UrlType)
Aras.IOM.Innovator.getFileUrls(System.Collections.ArrayList, Aras.IOM.UrlType)
Aras.IOM.Innovator.newError(System.String)
Aras.IOM.Innovator.ConsumeLicense(System.String)
Aras.IOM.Innovator.newResult(System.String)
Aras.IOM.Innovator.applySQL(System.String)
Aras.IOM.Innovator.getItemInDom(System.Xml.XmlDocument)
Aras.IOM.Innovator.getAssignedActivities(System.String, System.String)
Aras.IOM.Innovator.calcMD5(System.String)
Aras.IOM.Innovator.ScalcMD5(System.String)
Namespace: BitAddict.Aras
Assembly: BitAddict.Aras.dll
Syntax
public class MockInnovator : Innovator
Constructors
MockInnovator(IServerConnection)
Declaration
public MockInnovator(IServerConnection serverConnection)
Parameters
Type | Name | Description |
---|---|---|
Aras.IOM.IServerConnection | serverConnection |
Methods
AddMockItem(Item)
Add an item to the mock list
Declaration
public void AddMockItem(Item item)
Parameters
Type | Name | Description |
---|---|---|
Aras.IOM.Item | item |
getItemById(String, String)
Return mock item by id if found, otherwise hit database
Declaration
public Item getItemById(string itemType, string id)
Parameters
Type | Name | Description |
---|---|---|
System.String | itemType | |
System.String | id |
Returns
Type | Description |
---|---|
Aras.IOM.Item |
getItemByKeyedName(String, String)
Return mock item by keyed name if found, otherwise hit database
Declaration
public Item getItemByKeyedName(string itemType, string keyedName)
Parameters
Type | Name | Description |
---|---|---|
System.String | itemType | |
System.String | keyedName |
Returns
Type | Description |
---|---|
Aras.IOM.Item |