public void Add_WhenFilterParameterIsNull_Throws()
 {
     Assert.ThrowsArgumentNull(() => _collection.Add(filter: null), "filter");
 }
Ejemplo n.º 2
0
 /// <summary>
 /// RegisterWebApiFilters
 /// </summary>
 /// <param name="filters"></param>
 public static void RegisterWebApiFilters(System.Web.Http.Filters.HttpFilterCollection filters)
 {
     //HAMC Auth
     filters.Add(new AuthenticateAttribute());
     //filters.Add(new ExceptionFilterAttribute());
 }