32 lines
1.1 KiB
C#
32 lines
1.1 KiB
C#
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);
|
|
}
|
|
}
|
|
}
|