public void Setup() { _dbConnection = Substitute.For <IDbConnection>(); _userDataAccess = Substitute.For <IUserDataAccess>(); _sessionDataAccess = Substitute.For <ISessionDataAccess>(); _createNewUserService = new CreateNewUserService(_dbConnection, _sessionDataAccess, _userDataAccess); }
public RegisterController(IConfiguration configuration, ICreateNewUserService createNewUserService) { _createNewUserService = createNewUserService; }
public RegisterController(ICreateNewUserService createNewUserService, ICreateSessionService createSessionService, ICreateWalletService createWalletService) { _createNewUserService = createNewUserService; _createSessionService = createSessionService; _createWalletService = createWalletService; }