initialize
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
using System.Diagnostics;
|
||||
using com.itac.mes.imsapi.domain.container;
|
||||
using ItacMesToolsTestProject;
|
||||
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
||||
|
||||
namespace com.itac.mes.imsapi.client.dotnet
|
||||
{
|
||||
|
||||
[TestClass]
|
||||
public class ImsApiProxyTest
|
||||
{
|
||||
|
||||
[TestMethod]
|
||||
public void shouldCallInit()
|
||||
{
|
||||
//
|
||||
IIMSApiDotNet apiDelegate = new ImsapiHandler();
|
||||
ImsApiProxy proxy = new ImsApiProxy(apiDelegate);
|
||||
|
||||
IIMSApiDotNet imsApiMock = (IIMSApiDotNet)proxy.GetTransparentProxy();
|
||||
|
||||
string[] stationResultUploadKeys = new string[] { "Key1", "Key2" };
|
||||
|
||||
string[] stationResultUploadValues = new string[] { "val1", "val2", "val3", "val4" };
|
||||
string[] stationResultValues = null;
|
||||
int i = imsApiMock.trUploadStationResult(new IMSApiSessionContextStruct(), "station", "part", 0, "bomIndex", "bomVErsionErp", "workorder", -1, 0, stationResultUploadKeys, stationResultUploadValues, out stationResultValues);
|
||||
|
||||
Debug.WriteLine(stationResultValues.Length);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user