Exemplo n.º 1
0
 public void MyTestInitialize()
 {
     mockIntel = new Moq.Mock<IIntelService>();
     mockPeer = new Moq.Mock<IPeerRegistration>();
     mockServiceHost = new Moq.Mock<IServiceHost>();
     mockServiceHost.Setup(mock => mock.PeerRegistration).Returns(mockPeer.Object);
     target = new ServicePresenter(mockIntel.Object,  mockServiceHost.Object);
 }
Exemplo n.º 2
0
 public void MyTestCleanup()
 {
     target = null;
     mockPeer = null;
     mockIntel = null;
 }