private WhenSenderAndProjectCompanyMatched(ParseNode clauseNode, IStorageRepository storage, UserRepository userRepository) { _projectId = Int32.Parse(ClauseFactory.FindRecursive(TokenType.NUMBER, clauseNode).Token.Text); _storage = storage; _userRepository = userRepository; }
protected ThenClause(ParseNode clauseNode, ITpBus bus, IStorageRepository storage) { _bus = bus; _storage = storage; var projectIdNode = ClauseFactory.FindRecursive(TokenType.NUMBER, clauseNode); _projectId = Int32.Parse(projectIdNode.Token.Text); }
public static IWhenClause Create(ParseNode clauseNode) { var clauseParameter = ClauseFactory.FindRecursive(TokenType.STRING_PARAM, clauseNode).Token.Text.Trim('\''); return(new WhenSubjectContainsClause(clauseParameter)); }