using ServiceWire;

namespace ServiceMock
{
    public static class Mock
    {
        public static TInterface Make<TInterface>(MockDefinition definition) where TInterface : class
        {
            return ProxyFactory.CreateProxy<TInterface>(typeof(MockChannel),
                typeof(MockDefinition), definition);
        }

        public static TInterface Make<TInterface>() where TInterface : class
        {
            return Make<TInterface>(new MockDefinition());
        }
    }
}