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; mockPeer = null; mockIntel = null; }