//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @BeforeEach void setUp() internal virtual void SetUp() { _state.StreamingState = _streamingState; _state.InterruptedState = _interruptedState; _state.FailedState = _failedState; when(_context.connectionState()).thenReturn(_connectionState); when(_context.clock()).thenReturn(Clock.systemUTC()); _connectionState.StatementProcessor = _statementProcessor; }