Esempio 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);
 }
 public void MyTestCleanup()
 {
     target = null;
 }
 public void MyTestInitialize()
 {
     mockIntelClient = new Moq.Mock <IIntelClient>();
     target          = new ServicePresenter(mockIntelClient.Object);
 }
Esempio n. 4
0
 public void MyTestCleanup()
 {
     target    = null;
     mockPeer  = null;
     mockIntel = null;
 }