public async Task KeepAliveUserDataStream_NullListenKey_Throws() { // Arrange // Act // Assert await Assert.ThrowsAsync <ArgumentNullException>(async() => await ConcreteBinanceClient.KeepAliveUserDataStream(null)); }
public async Task KeepAliveUserDataStream_ValidListenKey_CallsProcessPutRequest() { // Arrange var listenKey = "listenKey"; // Act await ConcreteBinanceClient.KeepAliveUserDataStream(listenKey); // Assert MockAPIProcessor.Verify(a => a.ProcessPutRequest <UserDataStreamResponse>( It.Is <BinanceEndpointData>(u => u.Uri.Equals(Endpoints.UserStream.KeepAliveUserDataStream(listenKey).Uri)), 5000), Times.Once() ); }