public void FetchChannelToWorkWith_WhenCalled_AsksPoolBorrow()
        {
            Service channel = new Service();
            Expect.Call(pool.BorrowObject()).Return(channel);
            repo.ReplayAll();

            var result = CreatePoolManager().FetchChannelToWorkWith();

            Assert.AreSame(result, channel);
        }
        public void MakeObject_WhenCalled_CreatesChannel()
        {
            Service channel = new Service();
            Expect.Call(channelCreator.CreateChannel()).Return(channel);
            repo.ReplayAll();

            var result = ((IPoolableObjectFactory)CreatePoolManager()).MakeObject();

            Assert.AreSame(channel, result);
        }