﻿using NewsFlow.DAL;
using NewsFlow.DAL.Repository;
using Ninject;

namespace NewsFlow.Services
{
    public static class NinjectRegistrations
    {
        public static StandardKernel RegisterServices(StandardKernel kernel)
        {
            kernel.Bind<IUnitOfWork>().To<UnitOfWork>();
            kernel.Bind(typeof(IRepository<>)).To(typeof(Repository<>));

            return kernel;
        }
    }
}
