static DependencyResolver() { Logger = new Log4net(); RoleDao = new RoleDao(Logger); UserDao = new UserDao(Logger, RoleDao); CategoryDao = new CategoryDao(Logger); ProductDao = new ProductDao(Logger, CategoryDao); StoreDao = new StoreDao(Logger); VendorDao = new VendorDao(Logger); StatusDao = new StatusDao(Logger); CommodityUnitDao = new CommodityUnitDao(Logger, ProductDao, StatusDao, StoreDao, VendorDao); RoleBll = new RoleBll(Logger, RoleDao); UserBll = new UserBll(Logger, RoleBll, UserDao); CategoryBll = new CategoryBll(Logger, CategoryDao, CommodityUnitDao); ProductBll = new ProductBll(Logger, CategoryBll, ProductDao, CommodityUnitDao); StoreBll = new StoreBll(Logger, StoreDao, CommodityUnitDao); VendorBll = new VendorBll(Logger, VendorDao, CommodityUnitDao); StatusBll = new StatusBll(Logger, StatusDao, CommodityUnitDao); CommodityUnitBll = new CommodityUnitBll(Logger, CategoryBll, ProductBll, StatusBll, StoreBll, VendorBll, CommodityUnitDao); AuthenticationBll = new AuthenticationBll(UserBll); }
public AuthenticationController(IAuthenticationBll authenticationBll) { _authenticationBll = authenticationBll; }