private static void RegisterFactories(Type type, Registry registry)
        {
            var factoryRegistrar = new HandlerFactoryRegistrar(type, registry);

            factoryRegistrar.RegisterFactory(typeof(IUpdateCommand <,>), typeof(IUpdateHandlerFactory <,>), typeof(UpdateHandlerFactory <,>));
            factoryRegistrar.RegisterFactory(typeof(ICreateCommand <,>), typeof(ICreateHandlerFactory <,>), typeof(CreateHandlerFactory <,>));
        }
 private static void RegisterFactories(Type type, Registry registry)
 {
     var factoryRegistrar = new HandlerFactoryRegistrar(type, registry);
     factoryRegistrar.RegisterFactory(typeof(IUpdateCommand<,>), typeof(IUpdateHandlerFactory<,>), typeof(UpdateHandlerFactory<,>));
     factoryRegistrar.RegisterFactory(typeof(ICreateCommand<,>), typeof(ICreateHandlerFactory<,>), typeof(CreateHandlerFactory<,>));
 }