Esempio n. 1
0
        internal static DefaultResolver Create()
        {
            var resolver = new DefaultResolver();

            resolver.Register <IProductRepository>(() => new ProductRepository());
            return(resolver);
        }
 public CheckoutService(IResolver resolver = null)
 {
     _resolver = resolver ?? DefaultResolver.Create();
 }