Beispiel #1
0
        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);
        }
Beispiel #2
0
        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);
        }