public void GetWithGeneric() { var classWithSome = new ClassWithSomething(); var some = classWithSome.GetSomething <Something>(); Assert.IsNotNull(some); }
public void GetWithDynamicAutoCast() { var classWithSome = new ClassWithSomething(); // Necesita referencia Microsoft.CSharp, para utilizar modelBinder Something some = classWithSome.Something; Assert.IsNotNull(some); }