Beispiel #1
0
        public void DerivedTypeTest()
        {
            IClassInterface ici = new ClassInterface();
            ObjectMapper    om  = Map.GetObjectMapper(ici.GetType());
            MemberMapper    mm  = om["classInterface"];

            mm.SetValue(ici, new ClassInterface());
        }
Beispiel #2
0
 public ClassController(ClassInterface __class, IHostingEnvironment hostingEnvironment, IConfiguration configuration)
 {
     _class = __class;
     _hostingEnvironment = hostingEnvironment;
     _config             = configuration;
 }
		public void DerivedTypeTest()
		{
			IClassInterface ici = new ClassInterface();
			ObjectMapper om = Map.GetObjectMapper(ici.GetType());
			MemberMapper mm = om["classInterface"];
			mm.SetValue(ici, new ClassInterface());
		}