public void SetupTest()
        {
            context                 = new InstanceContext(new SCADACommuncEngineService());
            adress                  = new EndpointAddress("net.tcp://localhost:4100/CommunEngine");
            binding                 = new NetTcpBinding();
            clientUnderTest         = new SCADAProxy(context, binding, adress);
            clientUnderTest.Factory = Substitute.For <ICommunicationEngineContract>();

            clientUnderTest.Factory.ReceiveValue().Returns(true);
        }
示例#2
0
 public SCADAClient()
 {
     proxy = new SCADAProxy(new NetTcpBinding(), new EndpointAddress("net.tcp://localhost:4000/SCADAService"), new SCADACallback());
 }
 static ClientSCADAService()
 {
     sCADAProxy = new SCADAProxy();
 }