public void SetUp() { clientFactory = MockRepository.GenerateStub<IClientFactory>(); clientFactory.Stub(x => x.MakeNewClient(Arg<int>.Is.Anything)).Return(new Client(null) { ID = 100 }); stubSnapCounter = MockRepository.GenerateStub<ISnapCounter>(); stubNetworkSession = MockRepository.GenerateStub<INetworkSession>(); clientStateTracker = new ClientStateTracker(stubSnapCounter, stubNetworkSession, clientFactory); }