public static IMapper GetIMapper() { if (provider == null) { provider = new AutoMapperProvider(); } return(provider.mapper); }
private ApplicationProvider() { IMapper mapper = AutoMapperProvider.GetIMapper(); ApplicationContext context = new ApplicationContext(); unitOfWork = new UnitOfWork(context); clientService = new ClientServiceProxy(mapper, unitOfWork); }