public void Close_ChangeConnectionStateClosed( [Frozen] Mock <IEventStoreConnectionState> stateMock, EventStoreConnection eventStoreConnection, string streamName) { eventStoreConnection.Close(); stateMock.Verify(self => self.ChangeToClosing()); stateMock.Verify(self => self.ChangeToClosed()); }
public void TearDown() { _connection.Close(); }