public PermissionServiceTest() { var mapperConfig = new MapperConfiguration(config => { config.AddProfile <MapperRepository>(); }); _mapper = mapperConfig.CreateMapper(); _context = InMemoryContextFactory.Create(); this._repository = new PermissionRepository(_mapper, _context); this._service = new PermissionService(_repository); }
public CompanyServiceTest() { var mapperConfig = new MapperConfiguration(config => { config.AddProfile <MapperRepository>(); }); _mapper = mapperConfig.CreateMapper(); _context = InMemoryContextFactory.Create(); this._repository = new CompanyRepository(_mapper, _context); this._service = new CompanyService(_repository, _serviceUser, _permissionRepositoy, _repositoryPermission, _serviceLogin, _serviceEmail, _mapper); }
public PermissionRepository(IMapper mapper, PortalParceiroDbContext context) : base(context) { _mapper = mapper; _context = context; _context.ChangeTracker.QueryTrackingBehavior = QueryTrackingBehavior.NoTracking; }
public ProposalRepository(IMapper mapper, PortalParceiroDbContext context) : base(context) { _mapper = mapper; _context = context; }