public async Task DeleteAssetUsageCallsRequestSenderWithValidRequest() { var result = new Status { Message = "Accepted", StatusCode = 204 }; _apiRequestSenderMock.Setup(sender => sender.SendRequestAsync(It.IsAny <ApiRequest>())) .ReturnsAsync(result); var query = new AssetUsageQuery("integrationId", "assetId") { Uri = "/test/test.jpg" }; await _assetService.DeleteAssetUsage(query); _apiRequestSenderMock.Verify(sender => sender.SendRequestAsync( It.Is <ApiRequest>(req => req.Path == $"/api/media/usage/" && req.HTTPMethod == HttpMethod.Delete && req.Query == query ) )); }