public void ApplyDatabase_should_run_database_conventions()
        {
            var database                 = new EdmModel(DataSpace.CSpace);
            var mockConvention           = new Mock <IDbConvention>();
            var conventionsConfiguration = new ConventionsConfiguration(new[] { mockConvention.Object });

            conventionsConfiguration.ApplyDatabase(database);

            mockConvention.Verify(c => c.Apply(database), Times.AtMostOnce());
        }
        public void ApplyDatabase_should_run_targeted_model_conventions()
        {
            var database                 = new EdmModel(DataSpace.SSpace);
            var table                    = database.AddTable("T");
            var mockConvention           = new Mock <IDbConvention <EntityType> >();
            var conventionsConfiguration = new ConventionsConfiguration(
                new IConvention[]
            {
                mockConvention.Object
            });

            conventionsConfiguration.ApplyDatabase(database);

            mockConvention.Verify(c => c.Apply(table, database), Times.AtMostOnce());
        }