Beispiel #1
0
 public static void RegisterAction <TKey>(this IMarkedExtendable obj, TKey key, Action action)
 {
     lock (locker)
     {
         AttributeMap().Add(obj, key, factory.CreateActionAttribute(key, action));
     }
 }
        public void AttributeFactory_CreateActionReturnsTypeActionAttribute()
        {
            IExtensionAttribute attribute = factory.CreateActionAttribute("key", () => { });

            Assert.AreEqual(typeof(ActionAttribute), attribute.GetType());
        }