public async Task AddTagToMediaCallsRequestSenderWithValidRequest() { var result = new Status { Message = "Accepted", StatusCode = 202 }; _apiRequestSenderMock.Setup(sender => sender.SendRequestAsync(It.IsAny <ApiRequest>())) .ReturnsAsync(result); var query = new AddTagToMediaQuery("tagId", new List <string>()); await _assetService.AddTagToMediaAsync(query); _apiRequestSenderMock.Verify(sender => sender.SendRequestAsync( It.Is <ApiRequest>(req => req.Path == $"/api/v4/tags/{query.TagId}/media/" && req.HTTPMethod == HttpMethod.Post && req.Query == query ) )); }