using System;
using Autofac;
using Nop.Core.Configuration;
using Nop.Core.Infrastructure;
using Nop.Core.Infrastructure.DependencyManagement;
using Nop.Plugin.Payments.CardCom.Services;

namespace Nop.Plugin.Payments.CardCom
{
    public class DependencyRegistrar : IDependencyRegistrar
    {
        //public virtual void Register(ContainerBuilder builder, ITypeFinder typeFinder)
        //{
        //}

        public void Register(ContainerBuilder builder, ITypeFinder typeFinder, NopConfig config)
        {
            builder.RegisterType<CardComService>().As<ICardComService>().InstancePerLifetimeScope();
        }

        public int Order
        {
            get { return 1; }
        }
    }
}
