public void set_sessionkey_during_authentication() { var channel = Substitute.For <ITcpChannel>(); var transactionManager = Substitute.For <ITransactionManager>(); var sut = new StompClient(channel, transactionManager); sut.SetAsAuthenticated("kdfjkd"); var actual = sut.SessionKey; actual.Should().Be("kdfjkd"); }