public void ValidationContext_ServiceProvider()
        {
            IServiceProvider  provider = new MyServiceProvider();
            ValidationContext context  = new ValidationContext(new object(), provider, null);
            object            service  = context.GetService(typeof(string));

            Assert.IsNotNull(service);
            Assert.AreEqual("hello", service);

            service = context.GetService(typeof(Guid));
            Assert.IsNull(service);
        }
        public void ValidationContext_ServiceProvider() {
            IServiceProvider provider = new MyServiceProvider();
            ValidationContext context = new ValidationContext(new object(), provider, null);
            object service = context.GetService(typeof(string));
            Assert.IsNotNull(service);
            Assert.AreEqual("hello", service);

            service = context.GetService(typeof(Guid));
            Assert.IsNull(service);
        }