Exemple #1
0
        public void GetWithGeneric()
        {
            var classWithSome = new ClassWithSomething();
            var some          = classWithSome.GetSomething <Something>();

            Assert.IsNotNull(some);
        }
Exemple #2
0
        public void GetWithDynamicAutoCast()
        {
            var classWithSome = new ClassWithSomething();
            // Necesita referencia Microsoft.CSharp, para utilizar modelBinder
            Something some = classWithSome.Something;

            Assert.IsNotNull(some);
        }