public ThanksController ( IThankService thankService, IValidator <CreateThankModel> createThankModelValidator ) { _thankService = thankService; _createThankModelValidator = createThankModelValidator; }
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); }
public ThankController(IThankService _ThankService) { ThankService = _ThankService; }
public ThankController(IThankService thankService, IHttpContextAccessor httpContextAccessor) { _thankService = thankService; _httpContextAccessor = httpContextAccessor; }