コード例 #1
0
        public void Initialize()
        {
            _container = new Container();
            var factoryMethod = MethodUtils.GetMethodInfo(() => EventAggregators.Default(null));

            _container.RegisterType <IEventAggregator>(Constructors.StaticFactory(factoryMethod));
            _value = 0;
        }
コード例 #2
0
        public void GetMethodInfoTest()
        {
            var methodInfo = MethodUtils.GetMethodInfo <MethodUtilsTests>(c => c.GetMethodInfoTest());

            Assert.AreEqual("GetMethodInfoTest", methodInfo.Name);
        }