public void should_apply_strategies_by_predicate()
        {
            var model = new ModelWithNoAttributes();
            var notification = _provider.Validate(model);
            var messages = notification.AllMessages;

            var stringProp = AccessorFactory.Create<ModelWithNoAttributes>(m => m.SomeRequiredString);

            messages
                .ShouldContain(m => m.Accessors.Any(a => a.Equals(stringProp)));
        }
        public void should_apply_strategies_by_property_type()
        {
            var model = new ModelWithNoAttributes();
            var notification = _provider.Validate(model);
            var messages = notification.AllMessages;

            var id = AccessorFactory.Create<ModelWithNoAttributes>(m => m.Id);
            var ancillaryId = AccessorFactory.Create<ModelWithNoAttributes>(m => m.AncillaryId);

            messages
                .ShouldContain(m => m.Accessors.Any(a => a.Equals(id)));

            messages
                .ShouldContain(m => m.Accessors.Any(a => a.Equals(ancillaryId)));
        }