main
 1namespace momoney.database.transactions
 2{
 3    public interface IContextFactory
 4    {
 5        IContext create_for(IScopedStorage storage);
 6    }
 7
 8    public class ContextFactory : IContextFactory
 9    {
10        public IContext create_for(IScopedStorage storage)
11        {
12            return new Context(storage.provide_storage());
13        }
14    }
15}