public void Close_ChangeConnectionStateClosed(
            [Frozen] Mock <IEventStoreConnectionState> stateMock,
            EventStoreConnection eventStoreConnection,
            string streamName)
        {
            eventStoreConnection.Close();

            stateMock.Verify(self => self.ChangeToClosing());
            stateMock.Verify(self => self.ChangeToClosed());
        }
Example #2
0
 public void TearDown()
 {
     _connection.Close();
 }