public static EntityRepository InMemory(Action <EntityRepositoryExpression> configure)
        {
            var expression = new EntityRepositoryExpression();

            configure(expression);

            return(expression.Build());
        }
        private static EntityRepository basicRepository(EntityRepositoryExpression expression)
        {
            var storage = new StorageFactory(new InMemoryPersistor(), expression.Policies);

            return(new EntityRepository(storage));
        }