public async Task Given_Instance_When_AddHitCountAsync_With_ExpanderResponse_Invoked_Then_It_Should_Return_Result() { var instance = new Mock <IUrl>(); instance.Setup(p => p.AddHitCountAsync <ExpanderResponse>()).ReturnsAsync(instance.Object); var value = Task.FromResult(instance.Object); var result = await UrlExtensions.AddHitCountAsync <ExpanderResponse>(value).ConfigureAwait(false); result.Should().Be(instance.Object); }