|
|
@@ -10,11 +10,10 @@ using Renci.SshNet.Sftp.Responses;
|
|
|
namespace Renci.SshNet.Tests.Classes.Sftp
|
|
|
{
|
|
|
[TestClass]
|
|
|
- public class SftpFileStreamTest_Write_SessionOpen_CountGreatherThanTwoTimesTheWriteBufferSize
|
|
|
+ public class SftpFileStreamTest_Write_SessionOpen_CountGreatherThanTwoTimesTheWriteBufferSize : SftpFileStreamTestBase
|
|
|
{
|
|
|
- private Mock<ISftpSession> _sftpSessionMock;
|
|
|
+ private SftpFileStream _target;
|
|
|
private string _path;
|
|
|
- private SftpFileStream _sftpFileStream;
|
|
|
private byte[] _handle;
|
|
|
private uint _bufferSize;
|
|
|
private uint _readBufferSize;
|
|
|
@@ -22,122 +21,126 @@ namespace Renci.SshNet.Tests.Classes.Sftp
|
|
|
private byte[] _data;
|
|
|
private int _count;
|
|
|
private int _offset;
|
|
|
- private MockSequence _sequence;
|
|
|
private Random _random;
|
|
|
private uint _expectedWrittenByteCount;
|
|
|
private int _expectedBufferedByteCount;
|
|
|
private byte[] _expectedBufferedBytes;
|
|
|
|
|
|
- [TestInitialize]
|
|
|
- public void Setup()
|
|
|
+ protected override void SetupData()
|
|
|
{
|
|
|
- Arrange();
|
|
|
- Act();
|
|
|
- }
|
|
|
+ base.SetupData();
|
|
|
|
|
|
- [TestCleanup]
|
|
|
- public void TearDown()
|
|
|
- {
|
|
|
- if (_sftpSessionMock != null)
|
|
|
- {
|
|
|
- // allow Dispose to complete successfully
|
|
|
- _sftpSessionMock.InSequence(_sequence)
|
|
|
- .Setup(p => p.IsOpen)
|
|
|
- .Returns(true);
|
|
|
- _sftpSessionMock.InSequence(_sequence)
|
|
|
- .Setup(p => p.RequestWrite(_handle, _expectedWrittenByteCount, It.IsAny<byte[]>(), 0, _expectedBufferedByteCount, It.IsAny<AutoResetEvent>(), null));
|
|
|
- _sftpSessionMock.InSequence(_sequence)
|
|
|
- .Setup(p => p.RequestClose(_handle));
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- protected void Arrange()
|
|
|
- {
|
|
|
_random = new Random();
|
|
|
_path = _random.Next().ToString(CultureInfo.InvariantCulture);
|
|
|
- _handle = new[] {(byte) _random.Next(byte.MinValue, byte.MaxValue)};
|
|
|
- _bufferSize = (uint) _random.Next(1, 1000);
|
|
|
+ _handle = GenerateRandom(5, _random);
|
|
|
+ _bufferSize = (uint)_random.Next(1, 1000);
|
|
|
_readBufferSize = (uint) _random.Next(0, 1000);
|
|
|
_writeBufferSize = (uint) _random.Next(500, 1000);
|
|
|
- _data = new byte[(_writeBufferSize * 2) + 15];
|
|
|
+ _data = new byte[(_writeBufferSize * 2) + 15];
|
|
|
_random.NextBytes(_data);
|
|
|
_offset = _random.Next(1, 5);
|
|
|
// to get multiple SSH_FXP_WRITE messages (and verify the offset is updated correctly), we make sure
|
|
|
// the number of bytes to write is at least two times the write buffer size; we write a few extra bytes to
|
|
|
// ensure the buffer is not empty after the writes so we can verify whether Length, Dispose and Flush
|
|
|
// flush the buffer
|
|
|
- _count = ((int) _writeBufferSize*2) + _random.Next(1, 5);
|
|
|
+ _count = ((int) _writeBufferSize * 2) + _random.Next(1, 5);
|
|
|
|
|
|
_expectedWrittenByteCount = (2 * _writeBufferSize);
|
|
|
_expectedBufferedByteCount = (int)(_count - _expectedWrittenByteCount);
|
|
|
_expectedBufferedBytes = _data.Take(_offset + (int)_expectedWrittenByteCount, _expectedBufferedByteCount);
|
|
|
+ }
|
|
|
|
|
|
- _sftpSessionMock = new Mock<ISftpSession>(MockBehavior.Strict);
|
|
|
-
|
|
|
- _sequence = new MockSequence();
|
|
|
- _sftpSessionMock.InSequence(_sequence)
|
|
|
- .Setup(p => p.RequestOpen(_path, Flags.Write | Flags.Truncate, true))
|
|
|
- .Returns(_handle);
|
|
|
- _sftpSessionMock.InSequence(_sequence)
|
|
|
- .Setup(p => p.CalculateOptimalReadLength(_bufferSize))
|
|
|
- .Returns(_readBufferSize);
|
|
|
- _sftpSessionMock.InSequence(_sequence)
|
|
|
- .Setup(p => p.CalculateOptimalWriteLength(_bufferSize, _handle))
|
|
|
- .Returns(_writeBufferSize);
|
|
|
- _sftpSessionMock.InSequence(_sequence)
|
|
|
- .Setup(p => p.IsOpen)
|
|
|
- .Returns(true);
|
|
|
- _sftpSessionMock.InSequence(_sequence)
|
|
|
- .Setup(p => p.RequestWrite(_handle, 0, _data, _offset, (int) _writeBufferSize, It.IsAny<AutoResetEvent>(), null));
|
|
|
- _sftpSessionMock.InSequence(_sequence)
|
|
|
- .Setup(p => p.RequestWrite(_handle, _writeBufferSize, _data, _offset + (int) _writeBufferSize, (int)_writeBufferSize, It.IsAny<AutoResetEvent>(), null));
|
|
|
-
|
|
|
- _sftpFileStream = new SftpFileStream(_sftpSessionMock.Object, _path, FileMode.Create, FileAccess.Write, (int) _bufferSize);
|
|
|
+ protected override void SetupMocks()
|
|
|
+ {
|
|
|
+ SftpSessionMock.InSequence(MockSequence)
|
|
|
+ .Setup(p => p.RequestOpen(_path, Flags.Write | Flags.Truncate, true))
|
|
|
+ .Returns(_handle);
|
|
|
+ SftpSessionMock.InSequence(MockSequence)
|
|
|
+ .Setup(p => p.CalculateOptimalReadLength(_bufferSize))
|
|
|
+ .Returns(_readBufferSize);
|
|
|
+ SftpSessionMock.InSequence(MockSequence)
|
|
|
+ .Setup(p => p.CalculateOptimalWriteLength(_bufferSize, _handle))
|
|
|
+ .Returns(_writeBufferSize);
|
|
|
+ SftpSessionMock.InSequence(MockSequence).Setup(p => p.IsOpen).Returns(true);
|
|
|
+ SftpSessionMock.InSequence(MockSequence)
|
|
|
+ .Setup(p => p.RequestWrite(_handle, 0, _data, _offset, (int)_writeBufferSize, It.IsAny<AutoResetEvent>(), null));
|
|
|
+ SftpSessionMock.InSequence(MockSequence)
|
|
|
+ .Setup(p => p.RequestWrite(_handle, _writeBufferSize, _data, _offset + (int)_writeBufferSize, (int)_writeBufferSize, It.IsAny<AutoResetEvent>(), null));
|
|
|
}
|
|
|
|
|
|
- protected void Act()
|
|
|
+ [TestCleanup]
|
|
|
+ public void TearDown()
|
|
|
{
|
|
|
- _sftpFileStream.Write(_data, _offset, _count);
|
|
|
+ if (SftpSessionMock != null)
|
|
|
+ {
|
|
|
+ // allow Dispose to complete successfully
|
|
|
+ SftpSessionMock.InSequence(MockSequence)
|
|
|
+ .Setup(p => p.IsOpen)
|
|
|
+ .Returns(true);
|
|
|
+ SftpSessionMock.InSequence(MockSequence)
|
|
|
+ .Setup(p => p.RequestWrite(_handle, _expectedWrittenByteCount, It.IsAny<byte[]>(), 0, _expectedBufferedByteCount, It.IsAny<AutoResetEvent>(), null));
|
|
|
+ SftpSessionMock.InSequence(MockSequence)
|
|
|
+ .Setup(p => p.RequestClose(_handle));
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ protected override void Arrange()
|
|
|
+ {
|
|
|
+ base.Arrange();
|
|
|
+
|
|
|
+ _target = new SftpFileStream(SftpSessionMock.Object,
|
|
|
+ _path,
|
|
|
+ FileMode.Create,
|
|
|
+ FileAccess.Write,
|
|
|
+ (int) _bufferSize);
|
|
|
+ }
|
|
|
+
|
|
|
+ protected override void Act()
|
|
|
+ {
|
|
|
+ _target.Write(_data, _offset, _count);
|
|
|
}
|
|
|
|
|
|
[TestMethod]
|
|
|
public void RequestWriteOnSftpSessionShouldBeInvokedTwice()
|
|
|
{
|
|
|
- _sftpSessionMock.Verify(p => p.RequestWrite(_handle, 0, _data, _offset, (int)_writeBufferSize, It.IsAny<AutoResetEvent>(), null), Times.Once);
|
|
|
- _sftpSessionMock.Verify(p => p.RequestWrite(_handle, _writeBufferSize, _data, _offset + (int)_writeBufferSize, (int)_writeBufferSize, It.IsAny<AutoResetEvent>(), null), Times.Once);
|
|
|
+ SftpSessionMock.Verify(p => p.RequestWrite(_handle, 0, _data, _offset, (int)_writeBufferSize, It.IsAny<AutoResetEvent>(), null), Times.Once);
|
|
|
+ SftpSessionMock.Verify(p => p.RequestWrite(_handle, _writeBufferSize, _data, _offset + (int)_writeBufferSize, (int)_writeBufferSize, It.IsAny<AutoResetEvent>(), null), Times.Once);
|
|
|
}
|
|
|
|
|
|
[TestMethod]
|
|
|
public void PositionShouldBeNumberOfBytesWrittenToFileAndNUmberOfBytesInBuffer()
|
|
|
{
|
|
|
- _sftpSessionMock.InSequence(_sequence)
|
|
|
- .Setup(p => p.IsOpen)
|
|
|
- .Returns(true);
|
|
|
+ SftpSessionMock.InSequence(MockSequence).Setup(p => p.IsOpen).Returns(true);
|
|
|
|
|
|
- Assert.AreEqual(_count, _sftpFileStream.Position);
|
|
|
+ Assert.AreEqual(_count, _target.Position);
|
|
|
}
|
|
|
|
|
|
[TestMethod]
|
|
|
public void LengthShouldFlushBufferAndReturnSizeOfFile()
|
|
|
{
|
|
|
- var lengthFileAttributes = new SftpFileAttributes(DateTime.Now, DateTime.Now, _random.Next(), _random.Next(),
|
|
|
- _random.Next(), (uint) _random.Next(0, int.MaxValue), null);
|
|
|
+ var lengthFileAttributes = new SftpFileAttributes(DateTime.Now,
|
|
|
+ DateTime.Now,
|
|
|
+ _random.Next(),
|
|
|
+ _random.Next(),
|
|
|
+ _random.Next(),
|
|
|
+ (uint) _random.Next(0, int.MaxValue),
|
|
|
+ null);
|
|
|
byte[] actualFlushedData = null;
|
|
|
|
|
|
- _sftpSessionMock.InSequence(_sequence)
|
|
|
- .Setup(p => p.IsOpen)
|
|
|
- .Returns(true);
|
|
|
- _sftpSessionMock.InSequence(_sequence)
|
|
|
- .Setup(p => p.RequestWrite(_handle, _expectedWrittenByteCount, It.IsAny<byte[]>(), 0, _expectedBufferedByteCount, It.IsAny<AutoResetEvent>(), null))
|
|
|
- .Callback<byte[], ulong, byte[], int, int, AutoResetEvent, Action<SftpStatusResponse>>((handle, serverFileOffset, data, offset, length, wait, writeCompleted) => actualFlushedData = data.Take(offset, length));
|
|
|
- _sftpSessionMock.InSequence(_sequence)
|
|
|
- .Setup(p => p.RequestFStat(_handle, true))
|
|
|
- .Returns(lengthFileAttributes);
|
|
|
-
|
|
|
- Assert.AreEqual(lengthFileAttributes.Size, _sftpFileStream.Length);
|
|
|
+ SftpSessionMock.InSequence(MockSequence)
|
|
|
+ .Setup(p => p.IsOpen)
|
|
|
+ .Returns(true);
|
|
|
+ SftpSessionMock.InSequence(MockSequence)
|
|
|
+ .Setup(p => p.RequestWrite(_handle, _expectedWrittenByteCount, It.IsAny<byte[]>(), 0, _expectedBufferedByteCount, It.IsAny<AutoResetEvent>(), null))
|
|
|
+ .Callback<byte[], ulong, byte[], int, int, AutoResetEvent, Action<SftpStatusResponse>>((handle, serverFileOffset, data, offset, length, wait, writeCompleted) => actualFlushedData = data.Take(offset, length));
|
|
|
+ SftpSessionMock.InSequence(MockSequence)
|
|
|
+ .Setup(p => p.RequestFStat(_handle, true))
|
|
|
+ .Returns(lengthFileAttributes);
|
|
|
+
|
|
|
+ Assert.AreEqual(lengthFileAttributes.Size, _target.Length);
|
|
|
Assert.IsTrue(actualFlushedData.IsEqualTo(_expectedBufferedBytes));
|
|
|
|
|
|
- _sftpSessionMock.Verify(p => p.RequestWrite(_handle, _expectedWrittenByteCount, It.IsAny<byte[]>(), 0, _expectedBufferedByteCount, It.IsAny<AutoResetEvent>(), null), Times.Once);
|
|
|
+ SftpSessionMock.Verify(p => p.RequestWrite(_handle, _expectedWrittenByteCount, It.IsAny<byte[]>(), 0, _expectedBufferedByteCount, It.IsAny<AutoResetEvent>(), null), Times.Once);
|
|
|
}
|
|
|
|
|
|
[TestMethod]
|
|
|
@@ -146,20 +149,20 @@ namespace Renci.SshNet.Tests.Classes.Sftp
|
|
|
const SftpFileAttributes lengthFileAttributes = null;
|
|
|
byte[] actualFlushedData = null;
|
|
|
|
|
|
- _sftpSessionMock.InSequence(_sequence)
|
|
|
- .Setup(p => p.IsOpen)
|
|
|
- .Returns(true);
|
|
|
- _sftpSessionMock.InSequence(_sequence)
|
|
|
- .Setup(p => p.RequestWrite(_handle, _expectedWrittenByteCount, It.IsAny<byte[]>(), 0, _expectedBufferedByteCount, It.IsAny<AutoResetEvent>(), null))
|
|
|
- .Callback<byte[], ulong, byte[], int, int, AutoResetEvent, Action<SftpStatusResponse>>((handle, serverFileOffset, data, offset, length, wait, writeCompleted) => actualFlushedData = data.Take(offset, length));
|
|
|
- _sftpSessionMock.InSequence(_sequence)
|
|
|
- .Setup(p => p.RequestFStat(_handle, true))
|
|
|
- .Returns(lengthFileAttributes);
|
|
|
+ SftpSessionMock.InSequence(MockSequence)
|
|
|
+ .Setup(p => p.IsOpen)
|
|
|
+ .Returns(true);
|
|
|
+ SftpSessionMock.InSequence(MockSequence)
|
|
|
+ .Setup(p => p.RequestWrite(_handle, _expectedWrittenByteCount, It.IsAny<byte[]>(), 0, _expectedBufferedByteCount, It.IsAny<AutoResetEvent>(), null))
|
|
|
+ .Callback<byte[], ulong, byte[], int, int, AutoResetEvent, Action<SftpStatusResponse>>((handle, serverFileOffset, data, offset, length, wait, writeCompleted) => actualFlushedData = data.Take(offset, length));
|
|
|
+ SftpSessionMock.InSequence(MockSequence)
|
|
|
+ .Setup(p => p.RequestFStat(_handle, true))
|
|
|
+ .Returns(lengthFileAttributes);
|
|
|
|
|
|
try
|
|
|
{
|
|
|
- var length = _sftpFileStream.Length;
|
|
|
- Assert.Fail();
|
|
|
+ var length = _target.Length;
|
|
|
+ Assert.Fail("Length should have failed, but returned: " + length + ".");
|
|
|
}
|
|
|
catch (IOException ex)
|
|
|
{
|
|
|
@@ -169,62 +172,29 @@ namespace Renci.SshNet.Tests.Classes.Sftp
|
|
|
|
|
|
Assert.IsTrue(actualFlushedData.IsEqualTo(_expectedBufferedBytes));
|
|
|
|
|
|
- _sftpSessionMock.Verify(p => p.RequestWrite(_handle, _expectedWrittenByteCount, It.IsAny<byte[]>(), 0, _expectedBufferedByteCount, It.IsAny<AutoResetEvent>(), null), Times.Once);
|
|
|
+ SftpSessionMock.Verify(p => p.RequestWrite(_handle, _expectedWrittenByteCount, It.IsAny<byte[]>(), 0, _expectedBufferedByteCount, It.IsAny<AutoResetEvent>(), null), Times.Once);
|
|
|
}
|
|
|
|
|
|
- [TestMethod]
|
|
|
- public void LengthShouldThrowIOExceptionIfSizeIsMinusOne()
|
|
|
- {
|
|
|
- var lengthFileAttributes = new SftpFileAttributes(DateTime.Now, DateTime.Now, -1, _random.Next(), _random.Next(), (uint)_random.Next(0, int.MaxValue), null);
|
|
|
- byte[] actualFlushedData = null;
|
|
|
-
|
|
|
- _sftpSessionMock.InSequence(_sequence)
|
|
|
- .Setup(p => p.IsOpen)
|
|
|
- .Returns(true);
|
|
|
- _sftpSessionMock.InSequence(_sequence)
|
|
|
- .Setup(p => p.RequestWrite(_handle, _expectedWrittenByteCount, It.IsAny<byte[]>(), 0, _expectedBufferedByteCount, It.IsAny<AutoResetEvent>(), null))
|
|
|
- .Callback<byte[], ulong, byte[], int, int, AutoResetEvent, Action<SftpStatusResponse>>((handle, serverFileOffset, data, offset, length, wait, writeCompleted) => actualFlushedData = data.Take(offset, length));
|
|
|
- _sftpSessionMock.InSequence(_sequence)
|
|
|
- .Setup(p => p.RequestFStat(_handle, true))
|
|
|
- .Returns(lengthFileAttributes);
|
|
|
-
|
|
|
- try
|
|
|
- {
|
|
|
- var length = _sftpFileStream.Length;
|
|
|
- Assert.Fail();
|
|
|
- }
|
|
|
- catch (IOException ex)
|
|
|
- {
|
|
|
- Assert.IsNull(ex.InnerException);
|
|
|
- Assert.AreEqual("Seek operation failed.", ex.Message);
|
|
|
- }
|
|
|
-
|
|
|
- Assert.IsTrue(actualFlushedData.IsEqualTo(_expectedBufferedBytes));
|
|
|
-
|
|
|
- _sftpSessionMock.Verify(p => p.RequestWrite(_handle, _expectedWrittenByteCount, It.IsAny<byte[]>(), 0, _expectedBufferedByteCount, It.IsAny<AutoResetEvent>(), null), Times.Once);
|
|
|
- }
|
|
|
-
|
|
|
-
|
|
|
[TestMethod]
|
|
|
public void DisposeShouldFlushBufferAndCloseRequest()
|
|
|
{
|
|
|
byte[] actualFlushedData = null;
|
|
|
|
|
|
- _sftpSessionMock.InSequence(_sequence)
|
|
|
- .Setup(p => p.IsOpen)
|
|
|
- .Returns(true);
|
|
|
- _sftpSessionMock.InSequence(_sequence)
|
|
|
- .Setup(p => p.RequestWrite(_handle, _expectedWrittenByteCount, It.IsAny<byte[]>(), 0, _expectedBufferedByteCount, It.IsAny<AutoResetEvent>(), null))
|
|
|
- .Callback<byte[], ulong, byte[], int, int, AutoResetEvent, Action<SftpStatusResponse>>((handle, serverFileOffset, data, offset, length, wait, writeCompleted) => actualFlushedData = data.Take(offset, length));
|
|
|
- _sftpSessionMock.InSequence(_sequence)
|
|
|
- .Setup(p => p.RequestClose(_handle));
|
|
|
+ SftpSessionMock.InSequence(MockSequence)
|
|
|
+ .Setup(p => p.IsOpen)
|
|
|
+ .Returns(true);
|
|
|
+ SftpSessionMock.InSequence(MockSequence)
|
|
|
+ .Setup(p => p.RequestWrite(_handle, _expectedWrittenByteCount, It.IsAny<byte[]>(), 0, _expectedBufferedByteCount, It.IsAny<AutoResetEvent>(), null))
|
|
|
+ .Callback<byte[], ulong, byte[], int, int, AutoResetEvent, Action<SftpStatusResponse>>((handle, serverFileOffset, data, offset, length, wait, writeCompleted) => actualFlushedData = data.Take(offset, length));
|
|
|
+ SftpSessionMock.InSequence(MockSequence)
|
|
|
+ .Setup(p => p.RequestClose(_handle));
|
|
|
|
|
|
- _sftpFileStream.Dispose();
|
|
|
+ _target.Dispose();
|
|
|
|
|
|
Assert.IsTrue(actualFlushedData.IsEqualTo(_expectedBufferedBytes));
|
|
|
|
|
|
- _sftpSessionMock.Verify(p => p.RequestWrite(_handle, _expectedWrittenByteCount, It.IsAny<byte[]>(), 0, _expectedBufferedByteCount, It.IsAny<AutoResetEvent>(), null), Times.Once);
|
|
|
- _sftpSessionMock.Verify(p => p.RequestClose(_handle), Times.Once);
|
|
|
+ SftpSessionMock.Verify(p => p.RequestWrite(_handle, _expectedWrittenByteCount, It.IsAny<byte[]>(), 0, _expectedBufferedByteCount, It.IsAny<AutoResetEvent>(), null), Times.Once);
|
|
|
+ SftpSessionMock.Verify(p => p.RequestClose(_handle), Times.Once);
|
|
|
}
|
|
|
|
|
|
[TestMethod]
|
|
|
@@ -232,18 +202,18 @@ namespace Renci.SshNet.Tests.Classes.Sftp
|
|
|
{
|
|
|
byte[] actualFlushedData = null;
|
|
|
|
|
|
- _sftpSessionMock.InSequence(_sequence)
|
|
|
- .Setup(p => p.IsOpen)
|
|
|
- .Returns(true);
|
|
|
- _sftpSessionMock.InSequence(_sequence)
|
|
|
- .Setup(p => p.RequestWrite(_handle, _expectedWrittenByteCount, It.IsAny<byte[]>(), 0, _expectedBufferedByteCount, It.IsAny<AutoResetEvent>(), null))
|
|
|
- .Callback<byte[], ulong, byte[], int, int, AutoResetEvent, Action<SftpStatusResponse>>((handle, serverFileOffset, data, offset, length, wait, writeCompleted) => actualFlushedData = data.Take(offset, length));
|
|
|
+ SftpSessionMock.InSequence(MockSequence)
|
|
|
+ .Setup(p => p.IsOpen)
|
|
|
+ .Returns(true);
|
|
|
+ SftpSessionMock.InSequence(MockSequence)
|
|
|
+ .Setup(p => p.RequestWrite(_handle, _expectedWrittenByteCount, It.IsAny<byte[]>(), 0, _expectedBufferedByteCount, It.IsAny<AutoResetEvent>(), null))
|
|
|
+ .Callback<byte[], ulong, byte[], int, int, AutoResetEvent, Action<SftpStatusResponse>>((handle, serverFileOffset, data, offset, length, wait, writeCompleted) => actualFlushedData = data.Take(offset, length));
|
|
|
|
|
|
- _sftpFileStream.Flush();
|
|
|
+ _target.Flush();
|
|
|
|
|
|
Assert.IsTrue(actualFlushedData.IsEqualTo(_expectedBufferedBytes));
|
|
|
|
|
|
- _sftpSessionMock.Verify(p => p.RequestWrite(_handle, _expectedWrittenByteCount, It.IsAny<byte[]>(), 0, _expectedBufferedByteCount, It.IsAny<AutoResetEvent>(), null), Times.Once);
|
|
|
+ SftpSessionMock.Verify(p => p.RequestWrite(_handle, _expectedWrittenByteCount, It.IsAny<byte[]>(), 0, _expectedBufferedByteCount, It.IsAny<AutoResetEvent>(), null), Times.Once);
|
|
|
}
|
|
|
}
|
|
|
}
|