public async Task Should_Call_DataProvider_Register_Runner_Method() { // Act await _sut.Register(new QueueRunner()).ConfigureAwait(false); // Assert _dataProviderMock.Verify(x => x.RegisterQueueRunner(It.IsAny <QueueRunner>(), It.IsAny <CancellationToken>()), Times.Once()); }