public override void Given()
        {
            filterConventionCollection = new FilterConventionCollection();
            filterConventionCollection
                .LoadFromAssemblyContaining<TestConvention>();

            filterRegistration = CreateStub<IFilterRegistration>();
        }
        public override void Given()
        {
            filterConventionCollection = new FilterConventionCollection(FilterConventionActivator.Default);
            filterConventionCollection
            .LoadFromAssemblyContaining <TestConvention>();

            filterRegistration = CreateStub <IFilterRegistration>();
        }
        public void ApplyConventions(IFilterRegistration filterRegistration)
        {
            var convetions = FindConventions();

            foreach (var filterConvention in convetions.Select(type => ActivateConvention(type)))
            {
                filterConvention.ApplyConvention(filterRegistration);
            }
        }
 public void ApplyConvention(IFilterRegistration filterRegistration)
 {
     WasExecuted = true;
     filterRegistration.WithFilter<TestActionFilter>();
 }
 public void ApplyConvention(IFilterRegistration filterRegistration)
 {
     WasExecuted = true;
     filterRegistration.WithFilter <TestActionFilter>();
 }