public void SetUp() { var identifier = new ConcreteMixinTypeIdentifier(typeof(object), new HashSet <MethodInfo> (), new HashSet <MethodInfo> ()); _nonPublicMethod = ReflectionObjectMother.GetSomeNonPublicMethod(); _publicMethod = ReflectionObjectMother.GetSomePublicMethod(); _wrapperOrInterfaceMethod = ReflectionObjectMother.GetSomeMethod(); _concreteMixinType = new ConcreteMixinType( identifier, typeof(object), typeof(IServiceProvider), new Dictionary <MethodInfo, MethodInfo> { { _nonPublicMethod, _wrapperOrInterfaceMethod } }, new Dictionary <MethodInfo, MethodInfo> { { _nonPublicMethod, _wrapperOrInterfaceMethod } }); }
public static Type GetGeneratedMixinType(ClassContext requestingClass, Type mixinType) { ConcreteMixinType concreteMixinType = GetGeneratedMixinTypeAndMetadata(requestingClass, mixinType); return(concreteMixinType.GeneratedType); }