public async Task Should_Call_DataProvider_Deregister_Runner_Method() { // Act await _sut.Deregister("Test", "Test", 1).ConfigureAwait(false); // Assert _dataProviderMock.Verify(x => x.DeregisterQueueRunner(It.IsAny <string>(), It.IsAny <string>(), It.IsAny <int>(), It.IsAny <CancellationToken>()), Times.Once()); }