Exemplo n.º 1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="AuthenticationController"/> class.
 /// </summary>
 /// <param name="userDataMapper">
 /// The user Data Mapper.
 /// </param>
 /// <param name="encryptionService">
 /// The encryption service.
 /// </param>
 public AuthenticationController(
     IUserDataMapper userDataMapper,
     IEncryptionService encryptionService)
 {
     _userDataMapper    = userDataMapper;
     _encryptionService = encryptionService;
 }
Exemplo n.º 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="AuthenticationController"/> class.
 /// </summary>
 /// <param name="userDataMapper">
 /// The user Data Mapper.
 /// </param>
 /// <param name="encryptionService">
 /// The encryption service.
 /// </param>
 public AuthenticationController(
     IUserDataMapper userDataMapper, 
     IEncryptionService encryptionService)
 {
     _userDataMapper = userDataMapper;
     _encryptionService = encryptionService;
 }
Exemplo n.º 3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="UsersController"/> class.
 /// </summary>
 /// <param name="userDataMapper">
 /// The user repository.
 /// </param>
 /// <param name="mapper">
 /// The mapper.
 /// </param>
 /// <param name="encryptionService">
 /// The encryption service.
 /// </param>
 public UsersController(
     IUserDataMapper userDataMapper, 
     IMapper mapper,        
     IEncryptionService encryptionService)
 {
     _userDataMapper = userDataMapper;
     _mapper = mapper;
     _encryptionService = encryptionService;
 }
Exemplo n.º 4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="CompetitionsController"/> class.
 /// </summary>
 /// <param name="competitionDataMapper">
 /// The competition Data Mapper.
 /// </param>
 /// <param name="userDataMapper">
 /// The user Data Mapper.
 /// </param>
 /// <param name="mapper">
 /// The mapper.
 /// </param>
 public CompetitionsController(
     ICompetitionDataMapper competitionDataMapper,
     IUserDataMapper userDataMapper,
     IMapper mapper)
 {
     _competitionDataMapper = competitionDataMapper;
     _userDataMapper        = userDataMapper;
     _mapper = mapper;
 }
Exemplo n.º 5
0
 /// <summary>
 /// Initializes a new instance of the <see cref="UsersController"/> class.
 /// </summary>
 /// <param name="userDataMapper">
 /// The user repository.
 /// </param>
 /// <param name="mapper">
 /// The mapper.
 /// </param>
 /// <param name="encryptionService">
 /// The encryption service.
 /// </param>
 public UsersController(
     IUserDataMapper userDataMapper,
     IMapper mapper,
     IEncryptionService encryptionService)
 {
     _userDataMapper    = userDataMapper;
     _mapper            = mapper;
     _encryptionService = encryptionService;
 }
Exemplo n.º 6
0
 /// <summary>
 /// Initializes a new instance of the <see cref="CompetitionsController"/> class.
 /// </summary>
 /// <param name="competitionDataMapper">
 /// The competition Data Mapper.
 /// </param>
 /// <param name="userDataMapper">
 /// The user Data Mapper.
 /// </param>
 /// <param name="mapper">
 /// The mapper.
 /// </param>
 public CompetitionsController(
     ICompetitionDataMapper competitionDataMapper,
     IUserDataMapper userDataMapper,
     IMapper mapper)
 {
     _competitionDataMapper = competitionDataMapper;
     _userDataMapper = userDataMapper;
     _mapper = mapper;
 }
Exemplo n.º 7
0
		public  UserController(IUserDataMapper aController)
		{
			theUserDataMapper = aController;
		}
Exemplo n.º 8
0
 public UserService(ITokenService tokenService, IUserDataMapper mapper)
 {
     _tokenService = tokenService;
     _mapper       = mapper;
 }
Exemplo n.º 9
0
 public User(IUserDataMapper userDataMapper)
 {
     UserDataMapper = userDataMapper;
     _boss          = new Lazy <User>(() => GetBoss());
 }
 public UserService(IUserDataMapper userDataMapper)
 {
     UserDataMapper = userDataMapper;
 }