public void Discover_returns_configuration()
        {
            var modelBuilder = new DbModelBuilder();
            modelBuilder.Entity<Entity>().Property(e => e.Name).IsFixedLength();
            var model = modelBuilder.Build(new DbProviderInfo("System.Data.SqlClient", "2012"));
            var entityType = model.ConceptualModel.EntityTypes.First();
            var property = entityType.Properties.First(p => p.Name == "Name");

            var configuration = new FixedLengthDiscoverer().Discover(property, model) as FixedLengthConfiguration;

            Assert.NotNull(configuration);
        }
        public void Discover_returns_configuration()
        {
            var modelBuilder = new DbModelBuilder();

            modelBuilder.Entity <Entity>().Property(e => e.Name).IsFixedLength();
            var model      = modelBuilder.Build(new DbProviderInfo("System.Data.SqlClient", "2012"));
            var entityType = model.ConceptualModel.EntityTypes.First();
            var property   = entityType.Properties.First(p => p.Name == "Name");

            var configuration = new FixedLengthDiscoverer().Discover(property, model) as FixedLengthConfiguration;

            Assert.NotNull(configuration);
        }