public LoginService(ITokenGeneratorService tokenService, IAlipayService alipayService, IAlipayUserRepository userRepo, ILogger <LoginService> logger) { _logger = logger; this._tokenService = tokenService; this._alipayService = alipayService; _userRepo = userRepo; }
public void Setup() { _logger = A.Fake <ILogger <LoginService> >(); _tokenService = A.Fake <ITokenGeneratorService>(); _alipayService = A.Fake <IAlipayService>(); _userRepo = A.Fake <IAlipayUserRepository>(); _service = new LoginService(_tokenService, _alipayService, _userRepo, _logger); }
public UserService(IAlipayUserRepository userRepo, ILogger <UserService> logger) { _logger = logger; _userRepo = userRepo; }
public OrderService(IOrderRepository orderRepo, IAlipayUserRepository userRepository, ILogger <OrderService> logger) { _orderRepo = orderRepo; _userRepository = userRepository; _logger = logger; }