public void Item_to_create_cant_be_null(IHubSpotCrmAssociationClient sut) { Assert.That(() => sut.CreateAsync(null), Throws.ArgumentNullException); }
public async Task Request_is_correct([Frozen] IHttpRestClient client, IHubSpotCrmAssociationClient sut, Association associationToCreate) { await sut.CreateAsync(associationToCreate); Mock.Get(client).Verify(p => p.SendAsync(HttpMethod.Put, "/crm-associations/v1/associations", associationToCreate, null)); }