Dispose() protected method

Releases the unmanaged resources and optionally releases the managed resources.
protected Dispose ( bool disposing ) : void
disposing bool true to release both managed and unmanaged resources; false to release only unmanaged resources.
return void
        public void Dispose_Succeeds()
        {
            // Arrange
            var s = new DataflowWebHookSender(_loggerMock.Object);

            // Act
            s.Dispose();
            s.Dispose();
        }
 public void Dispose()
 {
     if (_sender != null)
     {
         _sender.Dispose();
     }
     if (_handlerMock != null)
     {
         _handlerMock.Dispose();
     }
     if (_httpClient != null)
     {
         _httpClient.Dispose();
     }
 }
        public void Dispose_Succeeds()
        {
            // Arrange
            DataflowWebHookSender s = new DataflowWebHookSender(_loggerMock.Object);

            // Act
            s.Dispose();
            s.Dispose();
        }