public void ApplyModel_should_run_model_conventions()
        {
            var model                    = new EdmModel(DataSpace.CSpace);
            var mockConvention           = new Mock <IEdmConvention>();
            var conventionsConfiguration = new ConventionsConfiguration(new[] { mockConvention.Object });

            conventionsConfiguration.ApplyModel(model);

            mockConvention.Verify(c => c.Apply(model), Times.AtMostOnce());
        }
        public void ApplyModel_should_run_targeted_model_conventions()
        {
            var model                    = new EdmModel(DataSpace.CSpace);
            var entityType               = model.AddEntityType("E");
            var mockConvention           = new Mock <IEdmConvention <EntityType> >();
            var conventionsConfiguration = new ConventionsConfiguration(
                new IConvention[]
            {
                mockConvention.Object
            });

            conventionsConfiguration.ApplyModel(model);

            mockConvention.Verify(c => c.Apply(entityType, model), Times.AtMostOnce());
        }