Exemplo n.º 1
0
 public ThanksController
 (
     IThankService thankService,
     IValidator <CreateThankModel> createThankModelValidator
 )
 {
     _thankService = thankService;
     _createThankModelValidator = createThankModelValidator;
 }
Exemplo n.º 2
0
        public void SetUp()
        {
            _userRepository  = new Mock <IUserRepository>();
            _thankRepository = new Mock <IThankRepository>();

            var myProfile     = new AutoMapperProfile();
            var configuration = new MapperConfiguration(cfg => cfg.AddProfile(myProfile));

            _mapper = new Mapper(configuration);

            _unitOfWork = new Mock <IUnitOfWork>();

            _thankService = new ThankService(_userRepository.Object, _thankRepository.Object,
                                             _mapper, _unitOfWork.Object);
        }
Exemplo n.º 3
0
 public ThankController(IThankService _ThankService)
 {
     ThankService = _ThankService;
 }
Exemplo n.º 4
0
 public ThankController(IThankService thankService, IHttpContextAccessor httpContextAccessor)
 {
     _thankService        = thankService;
     _httpContextAccessor = httpContextAccessor;
 }