protected CreateTempTableAndInsert(DatabaseFixture fixture)
                : base(fixture)
            {
                var defaultFactory = new DefaultTableNameFactory();

                this.tableNameFactory = new Mock <ITableNameFactory>();
                this.tableNameFactory.Setup(f => f.GetTableName(It.IsAny <Type>(), It.IsAny <IDialect>()))
                .Returns((Type t, IDialect d) => GetTableName(defaultFactory, t, d));

                MicroCRUDConfig.SetTableNameFactory(this.tableNameFactory.Object);
            }
 public void Can_set_TableNameFactory()
 {
     // Act
     try
     {
         MicroCRUDConfig.SetTableNameFactory(new NonPluralizingTableNameFactory());
     }
     finally
     {
         MicroCRUDConfig.SetTableNameFactory(new DefaultTableNameFactory());
     }
 }
 public void Dispose()
 {
     MicroCRUDConfig.SetTableNameFactory(new DefaultTableNameFactory());
 }