public async Task Request_is_correct([Frozen] IHttpRestClient client, IHubSpotCrmAssociationClient sut, Association associationToDelete) { await sut.DeleteAsync(associationToDelete); Mock.Get(client) .Verify(p => p.SendAsync(HttpMethod.Put, "/crm-associations/v1/associations/delete", associationToDelete, null)); }
public void Item_to_delete_cant_be_null(IHubSpotCrmAssociationClient sut) { Assert.ThrowsAsync <ArgumentNullException>(() => sut.DeleteAsync(null)); }