Mercurial > altnet-hispano
comparison Agendas/trunk/src/Agendas.Web.Tests/AutorizationsTests.cs @ 183:212c664db5aa
Generalización del manejo de las acciones sobre eventos
author | nelopauselli |
---|---|
date | Mon, 08 Aug 2011 22:27:00 -0300 |
parents | 1deccd6c3cb2 |
children | a36a76bd6ec3 |
comparison
equal
deleted
inserted
replaced
182:beeb48ddb44a | 183:212c664db5aa |
---|---|
23 var methods = new List<MethodInfo>(); | 23 var methods = new List<MethodInfo>(); |
24 foreach (var controller in controllers) | 24 foreach (var controller in controllers) |
25 { | 25 { |
26 var temp = | 26 var temp = |
27 controller.GetMethods(BindingFlags.Public | BindingFlags.Instance | ~BindingFlags.FlattenHierarchy).Where( | 27 controller.GetMethods(BindingFlags.Public | BindingFlags.Instance | ~BindingFlags.FlattenHierarchy).Where( |
28 m => typeof (ActionResult).IsAssignableFrom(m.ReturnType)); | 28 m => !m.IsPrivate && typeof (ActionResult).IsAssignableFrom(m.ReturnType)); |
29 | 29 |
30 methods.AddRange(temp); | 30 methods.AddRange(temp); |
31 } | 31 } |
32 | 32 |
33 _methods = methods; | 33 _methods = methods; |