IGLib  1.7.2
The IGLib base library EXTENDED - with other lilbraries and applications.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros
IGTest.ProgramIGTest Class Reference
+ Collaboration diagram for IGTest.ProgramIGTest:

Static Public Attributes

static IReporter _rep = new ReporterConsole()
 

Properties

static Premisa.ReporterMsg.Reporter R [get]
 Reporter for this class. More...
 
static IReporter R [get]
 Reporter for this class. More...
 

Static Private Member Functions

static void Main (string[] args)
 
static void TestMsgObservationEvent (string MessageFile)
 Reads observatin event message from the specified XML file and outputs the contents. File must contian data according to specification of SpecimenOservationEvent. DOES NOT convert the object back to XML!!! More...
 
static void TestMsgObservationEvent (string MessageFilename, string ModelFile, string OutputXmlFile, string FindingsFile)
 Test of a message read from the specified file and reads its data. Message contained in the file must be of type SpecimenObservationEvent. More...
 
static void TestMsgObservationEvent (string MessageFilename, string ModelFile, string OutputXmlFile, string FindingsFile, bool SendToCalypso)
 Test of a message read from the specified file and reads its data. Message contained in the file must be of type SpecimenObservationEvent. More...
 
static void TestMsgFinancialTransaction (string MessageFile)
 Reads financial transaction message from the specified XML file and outputs the contents. File must contian data according to specification of DetailedFinancialTransaction. DOES NOT convert the object back to XML!!! More...
 
static void TestMsgFinancialTransaction (string MessageFilename, string ModelFile, string OutputXmlFile)
 Test without sending to Calypso. More...
 
static void TestMsgFinancialTransaction (string MessageFilename, string ModelFile, string OutputXmlFile, bool SendToCalypso)
 Test of a message read from the specified file and reads its data. Message contained in the file must be of type DetailedFinancialTransaction. More...
 
static void TestFindings (string FindingsFile)
 Reads findings data from the specified XML file and outputs the contents. File must contian data according to specification of Findings. DOES NOT convert the object back to XML!!! More...
 
static void TestFindings (string FindingsFile, string OutputXmlFile, bool CreateXmlInputFormat)
 Reads findings data from the specified XML file and outputs the contents, then writes data back to XML. File must contian data according to specification of Findings. More...
 
static void ReceiveSpecimenObservationOrder (bool TakeFromQueue)
 Testing of receiving SpecimenObservationOrder: More...
 
static void TestMsgObservationOrder (string MessageFilename)
 Test of a message read from the specified file and reads its data. Message contained in the file must be of type SpecimenObservationOrder More...
 
static void TestMsgObservationOrderNullify (string MessageFilename, string OutputXmlFile)
 Test of a message read from the specified file and reads its data. Message contained in the file must be of type SpecimenObservationOrder More...
 
static void TestMsgObservationOrderNullifySend (string MessageFilename, string MessageId)
 Sends the nullification request for the specified Observation order message. More...
 
static void TestcalypsoWsSimple ()
 Simple test of web service, just receives an Id and a message. More...
 
static void TestCalypsoWs ()
 Gets the specific test from the Calypso web service. More...
 
static void TestW3cWs ()
 This tests a simple web service from W3C in order to check the outwards connection. More...
 
static void TestNumberConverter ()
 Tests conversion form Arabic to Roman numbers and conversely. More...
 
static void Main (string[] args)
 
static void TestMsgObservationEvent (string MessageFile)
 Reads observatin event message from the specified XML file and outputs the contents. File must contian data according to specification of SpecimenOservationEvent. DOES NOT convert the object back to XML!!! More...
 
static void TestMsgObservationEvent (string MessageFilename, string ModelFile, string OutputXmlFile, string FindingsFile)
 Test of a message read from the specified file and reads its data. Message contained in the file must be of type SpecimenObservationEvent. More...
 
static void TestMsgObservationEvent (string MessageFilename, string ModelFile, string OutputXmlFile, string FindingsFile, bool SendToCalypso)
 Test of a message read from the specified file and reads its data. Message contained in the file must be of type SpecimenObservationEvent. More...
 
static void TestMsgFinancialTransaction (string MessageFile)
 Reads financial transaction message from the specified XML file and outputs the contents. File must contian data according to specification of DetailedFinancialTransaction. DOES NOT convert the object back to XML!!! More...
 
static void TestMsgFinancialTransaction (string MessageFilename, string ModelFile, string OutputXmlFile)
 Test without sending to Calypso. More...
 
static void TestMsgFinancialTransaction (string MessageFilename, string ModelFile, string OutputXmlFile, bool SendToCalypso)
 Test of a message read from the specified file and reads its data. Message contained in the file must be of type DetailedFinancialTransaction. More...
 
static void TestFindings (string FindingsFile)
 Reads findings data from the specified XML file and outputs the contents. File must contian data according to specification of Findings. DOES NOT convert the object back to XML!!! More...
 
static void TestFindings (string FindingsFile, string OutputXmlFile, bool CreateXmlInputFormat)
 Reads findings data from the specified XML file and outputs the contents, then writes data back to XML. File must contian data according to specification of Findings. More...
 
static void ReceiveSpecimenObservationOrder (bool TakeFromQueue)
 Testing of receiving SpecimenObservationOrder: More...
 
static void TestMsgObservationOrder (string MessageFilename)
 Test of a message read from the specified file and reads its data. Message contained in the file must be of type SpecimenObservationOrder More...
 
static void TestMsgObservationOrderNullify (string MessageFilename, string OutputXmlFile)
 Test of a message read from the specified file and reads its data. Message contained in the file must be of type SpecimenObservationOrder More...
 
static void TestMsgObservationOrderNullifySend (string MessageFilename, string MessageId)
 Sends the nullification request for the specified Observation order message. More...
 
static void TestcalypsoWsSimple ()
 Simple test of web service, just receives an Id and a message. More...
 
static void TestCalypsoWs ()
 Gets the specific test from the Calypso web service. More...
 

Member Function Documentation

static void IGTest.ProgramIGTest.TestMsgObservationEvent ( string  MessageFile)
inlinestaticprivate

Reads observatin event message from the specified XML file and outputs the contents. File must contian data according to specification of SpecimenOservationEvent. DOES NOT convert the object back to XML!!!

Parameters
MessageFileName of the file containing the message.

Referenced by IGTest.ProgramIGTest.Main(), and IGTest.ProgramIGTest.TestMsgObservationEvent().

static void IGTest.ProgramIGTest.TestMsgObservationEvent ( string  MessageFilename,
string  ModelFile,
string  OutputXmlFile,
string  FindingsFile 
)
inlinestaticprivate

Test of a message read from the specified file and reads its data. Message contained in the file must be of type SpecimenObservationEvent.

Parameters
MessageFilenameName of the file containing the message. If not specified then name is obtained from application settings.
ModelFileName of the file that is used as a model for message construction. Its specification is obligatory when object is converted to XML.
OutputXmlFileName of the file to which XML representation of the object is written after object contents is read (interpreted).
FindingsFileName of the file that contains findings to be included in the message. If not specified then findings are just transcribed from the XML file.

References IGTest.ProgramIGTest.TestMsgObservationEvent().

static void IGTest.ProgramIGTest.TestMsgObservationEvent ( string  MessageFilename,
string  ModelFile,
string  OutputXmlFile,
string  FindingsFile,
bool  SendToCalypso 
)
inlinestaticprivate

Test of a message read from the specified file and reads its data. Message contained in the file must be of type SpecimenObservationEvent.

Parameters
MessageFilenameName of the file containing the message. If not specified then name is obtained from application settings.
ModelFileName of the file that is used as a model for message construction. Its specification is obligatory when object is converted to XML.
OutputXmlFileName of the file to which XML representation of the object is written after object contents is read (interpreted).
FindingsFileName of the file that contains findings to be included in the message. If not specified then findings are just transcribed from the XML file.

References LabexBis.BisCommunicationSettings.ExampleFile(), LabexBis.Calypso.Global, IGTest.ProgramIGTest.R, LabexBis.BisCommunicationSettings.ReadSettingsAppConfig(), LabexBis.Calypso.SendMessageToBis(), LabexBis.Calypso.Settings, and LabexBis.BisCommunicationSettings.ToString().

static void IGTest.ProgramIGTest.TestMsgFinancialTransaction ( string  MessageFile)
inlinestaticprivate

Reads financial transaction message from the specified XML file and outputs the contents. File must contian data according to specification of DetailedFinancialTransaction. DOES NOT convert the object back to XML!!!

Parameters
MessageFileName of the file containing the message.

Referenced by IGTest.ProgramIGTest.Main(), and IGTest.ProgramIGTest.TestMsgFinancialTransaction().

static void IGTest.ProgramIGTest.TestMsgFinancialTransaction ( string  MessageFilename,
string  ModelFile,
string  OutputXmlFile 
)
inlinestaticprivate

Test without sending to Calypso.

References IGTest.ProgramIGTest.TestMsgFinancialTransaction().

static void IGTest.ProgramIGTest.TestMsgFinancialTransaction ( string  MessageFilename,
string  ModelFile,
string  OutputXmlFile,
bool  SendToCalypso 
)
inlinestaticprivate

Test of a message read from the specified file and reads its data. Message contained in the file must be of type DetailedFinancialTransaction.

Parameters
MessageFilenameName of the file containing the message. If not specified then name is obtained from application settings.
ModelFileName of the file that is used as a model for message construction. Its specification is obligatory when object is converted to XML.
OutputXmlFileName of the file to which XML representation of the object is written after object contents is read (interpreted).

References LabexBis.BisCommunicationSettings.ExampleFile(), LabexBis.Calypso.Global, IGTest.ProgramIGTest.R, LabexBis.BisCommunicationSettings.ReadSettingsAppConfig(), LabexBis.Calypso.SendMessageToBis(), LabexBis.Calypso.Settings, and LabexBis.BisCommunicationSettings.ToString().

static void IGTest.ProgramIGTest.TestFindings ( string  FindingsFile)
inlinestaticprivate

Reads findings data from the specified XML file and outputs the contents. File must contian data according to specification of Findings. DOES NOT convert the object back to XML!!!

Parameters
MessageFileName of the file containing the message.

Referenced by IGTest.ProgramIGTest.TestFindings().

static void IGTest.ProgramIGTest.TestFindings ( string  FindingsFile,
string  OutputXmlFile,
bool  CreateXmlInputFormat 
)
inlinestaticprivate

Reads findings data from the specified XML file and outputs the contents, then writes data back to XML. File must contian data according to specification of Findings.

Parameters
MessageFileName of the file containing the message.
OutputXmlFileName of the file to wghich Xml is saved.
CreateXmlInputFormatIf true then XML is created in iput format when created from data.

References IGTest.ProgramIGTest.R.

static void IGTest.ProgramIGTest.ReceiveSpecimenObservationOrder ( bool  TakeFromQueue)
inlinestaticprivate

Testing of receiving SpecimenObservationOrder:

Parameters
TakeFromQueueIndicates whether the received message should be taken from the queue if everything is OK.

References LabexBis.Calypso.ConfirmMessageReceipt(), LabexBis.Calypso.GetMessage(), LabexBis.Calypso.Global, IGTest.ProgramIGTest.R, LabexBis.BisCommunicationSettings.ReadSettingsAppConfig(), LabexBis.Calypso.SaveIncomingMessage(), LabexBis.Calypso.Settings, and LabexBis.BisCommunicationSettings.ToString().

Referenced by IGTest.ProgramIGTest.Main().

static void IGTest.ProgramIGTest.TestMsgObservationOrder ( string  MessageFilename)
inlinestaticprivate

Test of a message read from the specified file and reads its data. Message contained in the file must be of type SpecimenObservationOrder

Parameters
MessageFilenameName of the file containing the message. If not specified then name is obtained from application settings.

References LabexBis.BisCommunicationSettings.ExampleFile(), LabexBis.Calypso.Global, LabexBis.BisCommunicationSettings.ReadSettingsAppConfig(), and LabexBis.Calypso.Settings.

Referenced by IGTest.ProgramIGTest.Main().

static void IGTest.ProgramIGTest.TestMsgObservationOrderNullify ( string  MessageFilename,
string  OutputXmlFile 
)
inlinestaticprivate

Test of a message read from the specified file and reads its data. Message contained in the file must be of type SpecimenObservationOrder

Parameters
MessageFilenameName of the file containing the message.
OutputXmlFileName of the file containing the message. If not specified then name is obtained from application settings.

References LabexBis.BisCommunicationSettings.ExampleFile(), LabexBis.Calypso.Global, LabexBis.BisCommunicationSettings.ReadSettingsAppConfig(), and LabexBis.Calypso.Settings.

Referenced by IGTest.ProgramIGTest.Main().

static void IGTest.ProgramIGTest.TestMsgObservationOrderNullifySend ( string  MessageFilename,
string  MessageId 
)
inlinestaticprivate

Sends the nullification request for the specified Observation order message.

Parameters
MessageFilenameName of the file that contains the message.
MessageIdId of the message.

References LabexBis.Calypso.Global, IGTest.ProgramIGTest.R, LabexBis.BisCommunicationSettings.ReadSettingsAppConfig(), LabexBis.Calypso.SendOoNullifyToBis(), and LabexBis.Calypso.Settings.

Referenced by IGTest.ProgramIGTest.Main().

static void IGTest.ProgramIGTest.TestW3cWs ( )
inlinestaticprivate

This tests a simple web service from W3C in order to check the outwards connection.

References IGTest.TestWebReference.TempConvert.Url.

static void IGTest.ProgramIGTest.TestNumberConverter ( )
inlinestaticprivate

Tests conversion form Arabic to Roman numbers and conversely.

static void IGTest.ProgramIGTest.TestMsgObservationEvent ( string  MessageFile)
inlinestaticprivate

Reads observatin event message from the specified XML file and outputs the contents. File must contian data according to specification of SpecimenOservationEvent. DOES NOT convert the object back to XML!!!

Parameters
MessageFileName of the file containing the message.

References IGTest.ProgramIGTest.TestMsgObservationEvent().

static void IGTest.ProgramIGTest.TestMsgObservationEvent ( string  MessageFilename,
string  ModelFile,
string  OutputXmlFile,
string  FindingsFile 
)
inlinestaticprivate

Test of a message read from the specified file and reads its data. Message contained in the file must be of type SpecimenObservationEvent.

Parameters
MessageFilenameName of the file containing the message. If not specified then name is obtained from application settings.
ModelFileName of the file that is used as a model for message construction. Its specification is obligatory when object is converted to XML.
OutputXmlFileName of the file to which XML representation of the object is written after object contents is read (interpreted).
FindingsFileName of the file that contains findings to be included in the message. If not specified then findings are just transcribed from the XML file.

References IGTest.ProgramIGTest.TestMsgObservationEvent().

static void IGTest.ProgramIGTest.TestMsgObservationEvent ( string  MessageFilename,
string  ModelFile,
string  OutputXmlFile,
string  FindingsFile,
bool  SendToCalypso 
)
inlinestaticprivate

Test of a message read from the specified file and reads its data. Message contained in the file must be of type SpecimenObservationEvent.

Parameters
MessageFilenameName of the file containing the message. If not specified then name is obtained from application settings.
ModelFileName of the file that is used as a model for message construction. Its specification is obligatory when object is converted to XML.
OutputXmlFileName of the file to which XML representation of the object is written after object contents is read (interpreted).
FindingsFileName of the file that contains findings to be included in the message. If not specified then findings are just transcribed from the XML file.

References IG.Lib.ParsableXmlObject.Doc, LabexBis.BisCommunicationSettings.ExampleFile(), LabexBis.Calypso.Global, IG.Lib.ParsableXmlObject.Load(), IG.Lib.MsgObservationEvent.LoadFindings(), IG.Lib.MsgBase.MessageNumber, IGTest.ProgramIGTest.R, IG.Lib.MsgObservationEvent.Read(), LabexBis.BisCommunicationSettings.ReadSettingsAppConfig(), IG.Lib.ParsableXmlObject.Save(), LabexBis.Calypso.SendMessageToBis(), IG.Lib.MsgBaseWithModel.SetModelFile(), IG.Lib.MsgBase.SetSenderLabex(), LabexBis.Calypso.Settings, LabexBis.BisCommunicationSettings.ToString(), IG.Lib.MsgObservationEvent.ToXml(), and IG.Lib.ParsableXmlObject.WriteToConsole().

static void IGTest.ProgramIGTest.TestMsgFinancialTransaction ( string  MessageFile)
inlinestaticprivate

Reads financial transaction message from the specified XML file and outputs the contents. File must contian data according to specification of DetailedFinancialTransaction. DOES NOT convert the object back to XML!!!

Parameters
MessageFileName of the file containing the message.

References IGTest.ProgramIGTest.TestMsgFinancialTransaction().

static void IGTest.ProgramIGTest.TestMsgFinancialTransaction ( string  MessageFilename,
string  ModelFile,
string  OutputXmlFile 
)
inlinestaticprivate

Test without sending to Calypso.

References IGTest.ProgramIGTest.TestMsgFinancialTransaction().

static void IGTest.ProgramIGTest.TestMsgFinancialTransaction ( string  MessageFilename,
string  ModelFile,
string  OutputXmlFile,
bool  SendToCalypso 
)
inlinestaticprivate

Test of a message read from the specified file and reads its data. Message contained in the file must be of type DetailedFinancialTransaction.

Parameters
MessageFilenameName of the file containing the message. If not specified then name is obtained from application settings.
ModelFileName of the file that is used as a model for message construction. Its specification is obligatory when object is converted to XML.
OutputXmlFileName of the file to which XML representation of the object is written after object contents is read (interpreted).

References IG.Lib.ParsableXmlObject.Doc, LabexBis.BisCommunicationSettings.ExampleFile(), LabexBis.Calypso.Global, IG.Lib.ParsableXmlObject.Load(), IG.Lib.MsgBase.MessageNumber, IGTest.ProgramIGTest.R, IG.Lib.MsgFinancialTransaction.Read(), LabexBis.BisCommunicationSettings.ReadSettingsAppConfig(), IG.Lib.ParsableXmlObject.Save(), LabexBis.Calypso.SendMessageToBis(), IG.Lib.MsgBaseWithModel.SetModelFile(), IG.Lib.MsgBase.SetSenderLabex(), LabexBis.Calypso.Settings, LabexBis.BisCommunicationSettings.ToString(), IG.Lib.MsgFinancialTransaction.ToXml(), and IG.Lib.ParsableXmlObject.WriteToConsole().

static void IGTest.ProgramIGTest.TestFindings ( string  FindingsFile)
inlinestaticprivate

Reads findings data from the specified XML file and outputs the contents. File must contian data according to specification of Findings. DOES NOT convert the object back to XML!!!

Parameters
MessageFileName of the file containing the message.

References IGTest.ProgramIGTest.TestFindings().

static void IGTest.ProgramIGTest.TestFindings ( string  FindingsFile,
string  OutputXmlFile,
bool  CreateXmlInputFormat 
)
inlinestaticprivate

Reads findings data from the specified XML file and outputs the contents, then writes data back to XML. File must contian data according to specification of Findings.

Parameters
MessageFileName of the file containing the message.
OutputXmlFileName of the file to wghich Xml is saved.
CreateXmlInputFormatIf true then XML is created in iput format when created from data.

References IG.Lib.ParsableXmlObject.Doc, IG.Lib.ParsableXmlObject.Load(), IGTest.ProgramIGTest.R, IG.Lib.DocFindings.Read(), IG.Lib.ParsableXmlObject.Save(), IG.Lib.DocFindings.ToXml(), IG.Lib.ParsableXmlObject.WriteToConsole(), and IG.Lib.DocFindings.XmlCreateInputFormat.

static void IGTest.ProgramIGTest.TestMsgObservationOrder ( string  MessageFilename)
inlinestaticprivate

Test of a message read from the specified file and reads its data. Message contained in the file must be of type SpecimenObservationOrder

Parameters
MessageFilenameName of the file containing the message. If not specified then name is obtained from application settings.

References LabexBis.BisCommunicationSettings.ExampleFile(), LabexBis.Calypso.Global, IG.Lib.ParsableXmlObject.Load(), IG.Lib.MsgObervationOrder.Read(), LabexBis.BisCommunicationSettings.ReadSettingsAppConfig(), LabexBis.Calypso.Settings, and IG.Lib.ParsableXmlObject.WriteToConsole().

static void IGTest.ProgramIGTest.TestMsgObservationOrderNullify ( string  MessageFilename,
string  OutputXmlFile 
)
inlinestaticprivate

Test of a message read from the specified file and reads its data. Message contained in the file must be of type SpecimenObservationOrder

Parameters
MessageFilenameName of the file containing the message.
OutputXmlFileName of the file containing the message. If not specified then name is obtained from application settings.

References IG.Lib.ParsableXmlObject.Doc, LabexBis.BisCommunicationSettings.ExampleFile(), LabexBis.Calypso.Global, IG.Lib.ParsableXmlObject.Load(), IG.Lib.MsgObervationOrder.PrepareOoNullify(), IG.Lib.MsgObervationOrder.Read(), LabexBis.BisCommunicationSettings.ReadSettingsAppConfig(), LabexBis.Calypso.Settings, and IG.Lib.ParsableXmlObject.WriteToConsole().

static void IGTest.ProgramIGTest.TestMsgObservationOrderNullifySend ( string  MessageFilename,
string  MessageId 
)
inlinestaticprivate

Sends the nullification request for the specified Observation order message.

Parameters
MessageFilenameName of the file that contains the message.
MessageIdId of the message.

References LabexBis.Calypso.Global, IG.Lib.ParsableXmlObject.Load(), IG.Lib.MsgBase.MessageId, IGTest.ProgramIGTest.R, LabexBis.BisCommunicationSettings.ReadSettingsAppConfig(), LabexBis.Calypso.SendOoNullifyToBis(), and LabexBis.Calypso.Settings.

Member Data Documentation

IReporter IGTest.ProgramIGTest._rep = new ReporterConsole()
static

Property Documentation

IReporter IGTest.ProgramIGTest.R
staticget

Reporter for this class.


The documentation for this class was generated from the following file: