Exemplo n.º 1
0
 public CvController(ICvService cvService)
 {
     if (cvService == null)
     {
         throw new ArgumentNullException(nameof(cvService));
     }
     this._cvService = cvService;
 }
Exemplo n.º 2
0
        public CvServiceTests()
        {
            var options = new DbContextOptionsBuilder <JobDbContext>()
                          .UseInMemoryDatabase(Guid.NewGuid().ToString())
                          .Options;

            _context        = new JobDbContext(options);
            _accessor       = new HttpContextAccessor();
            this._cvService = new CvService(_context, _accessor);
        }
Exemplo n.º 3
0
 public HomeController(ICvService cvService)
 {
     this.cvService = cvService;
 }
Exemplo n.º 4
0
 public CvController(ICvService cvService)
 {
     _cvService = cvService;
 }
 /// <summary>
 /// This is the constructor of the ProjectService class
 /// </summary>
 /// <param name="context">Data base context</param>
 /// <param name="userService">The service that is responsible for the user</param>
 /// <param name="cvService">The service that is responsible for the CVs</param>
 public ProjectService(JobApplicationDbContext context, IUserService userService, ICvService cvService)
 {
     this.context     = context;
     this.userService = userService;
     this.cvService   = cvService;
 }
Exemplo n.º 6
0
 public SigtCvController(ICvService <CvDTO> cvService)
 {
     _cvService = cvService;
 }
Exemplo n.º 7
0
 public CvController(ICvService service) =>
 this.service = service;
Exemplo n.º 8
0
 /// <summary>
 /// This is the constructor of the CvsController class.
 /// </summary>
 /// <param name="UserService">The service, responsible for the User</param>
 /// <param name="CVService">The service, responsible for the CV</param>
 /// <param name="context">Data base context</param>
 public CvsController(IUserService UserService, ICvService CVService, JobApplicationDbContext context)
 {
     this.UserService = UserService;
     this.CVService   = CVService;
     this.context     = context;
 }