示例#1
0
文件: Job.cs 项目: BrianGoff/BITS
 public Job(DateTime _id, string _group, string _name, StateEnums.Status _status)
 {
     jobId = _id;
     jobGroup = _group;
     jobName = _name;
     jobStatus = _status;
 }
示例#2
0
		public void ExecuteTest()
		{
			DataTableToXml target = new DataTableToXml(); // TODO: Initialize to an appropriate value
			target.InputToProcess = "IrsData";
			target.AssetTypeField = "TradeType";
			object o = null; // TODO: Initialize to an appropriate value
			Hashtable inputData = new Hashtable(); // TODO: Initialize to an appropriate value
			
			DataSet ds = new DataSet();
			ds.ReadXml(@"C:\Local\BITS_Shell_v20x\BITS_BSL\BitsModules\Modules\DataTableToXml_Test\TestData\WcfBossGetTrades_Data.xml", XmlReadMode.Auto);

			inputData.Add("IrsData", ds.Tables[0]);

			StateEnums.Status expected = new StateEnums.Status(); // TODO: Initialize to an appropriate value
			StateEnums.Status actual;
			actual = target.Execute(o, inputData);
			Assert.AreEqual(expected, actual);
			Assert.Inconclusive("Verify the correctness of this test method.");
		}
示例#3
0
		public void ExecuteTestBossGetTrades()
		{
			
			WcfClient2 target = new WcfClient2("WcfCient2"); // TODO: Initialize to an appropriate value
			target.EndpointConfigurationName = "NetTcpBinding_ITradeService";
			target.WcfConcreteClientAssemblyname = @"C:\Local\BITS_Shell_v20x\bin\Modules\WcfClientBossGetTrades.dll";
			target.WcfConcreteClientClassname = "WcfClientBossGetTrades.WcfClientBossGetTrades";
//			target.Parameters = "assetClass,System.String=IRS;entryDate,System.Int32=20130418";
			target.Parameters = "assetClass,System.String=IRS;entryDate,System.Int32=20130516";

			object o = null; // TODO: Initialize to an appropriate value
			Hashtable inputData = new Hashtable() ; // TODO: Initialize to an appropriate value
			StateEnums.Status expected = new StateEnums.Status(); // TODO: Initialize to an appropriate value
			StateEnums.Status actual;
			actual = target.Execute(o, inputData);
			object res = target.OutputData["WcfCient2"];
			Assert.AreEqual(expected, actual);
			Assert.Inconclusive("Verify the correctness of this test method.");

			/*
					WcfClient2 target = new WcfClient2(); // TODO: Initialize to an appropriate value
					object o = null; // TODO: Initialize to an appropriate value
					Hashtable inputData = null; // TODO: Initialize to an appropriate value
					StateEnums.Status expected = new StateEnums.Status(); // TODO: Initialize to an appropriate value
					StateEnums.Status actual;
					actual = target.Execute(o, inputData);
					Assert.AreEqual(expected, actual);
					Assert.Inconclusive("Verify the correctness of this test method.");
			 */

		}
示例#4
0
		public void ExecuteTestBossCreateSecurity()
		{

			WcfClient2 target = new WcfClient2("WcfCient2"); // TODO: Initialize to an appropriate value
			target.EndpointConfigurationName = "NetTcpBinding_ITradeService";
			target.WcfConcreteClientAssemblyname = @"C:\Local\BITS_Shell_v20x\bin\Modules\WcfClientBossCreateSecurity.dll";
			target.WcfConcreteClientClassname = "WcfClientBossCreateSecurity.WcfClientBossCreateSecurity";
			target.InputToProcess = "Validation_DataTable_Kickouts";
			target.Parameters = "GenevaNamespace,System.String=http://www.advent.com/SchemaRevLevel371/Geneva;LoadableRecordNodeDepth,System.Int32=3";
			DataTable dtKickouts = new DataTable();
			dtKickouts.Columns.Add(new DataColumn("Investment", Type.GetType("System.String")));
			string symbols = "IRS B000058,IRS B003192,FRA B001049,OIS B000002,BAS B000003"; // "OIS B000022,OIS B000024,FRA B000041";
			foreach (string s in symbols.Split(','))
			{
				DataRow dr = dtKickouts.NewRow();
				dr["Investment"] = s;
				dtKickouts.Rows.Add(dr);
			}
			dtKickouts.AcceptChanges();

			object o = null; // TODO: Initialize to an appropriate value
			Hashtable inputData = new Hashtable(); // TODO: Initialize to an appropriate value
			inputData.Add("Validation_DataTable_Kickouts", dtKickouts);
			//inputData.Add("GenevaNamespace", "http://www.advent.com/SchemaRevLevel371/Geneva");
			//inputData.Add("LoadableRecordNodeDepth", 3);


			StateEnums.Status expected = new StateEnums.Status(); // TODO: Initialize to an appropriate value
			StateEnums.Status actual;
			actual = target.Execute(o, inputData);
			object res = target.OutputData["WcfCient2"];
			Assert.AreEqual(expected, actual);
			Assert.Inconclusive("Verify the correctness of this test method.");

			/*
					WcfClient2 target = new WcfClient2(); // TODO: Initialize to an appropriate value
					object o = null; // TODO: Initialize to an appropriate value
					Hashtable inputData = null; // TODO: Initialize to an appropriate value
					StateEnums.Status expected = new StateEnums.Status(); // TODO: Initialize to an appropriate value
					StateEnums.Status actual;
					actual = target.Execute(o, inputData);
					Assert.AreEqual(expected, actual);
					Assert.Inconclusive("Verify the correctness of this test method.");
			 */

		}