public async Task Request_is_correct([Frozen] IHttpRestClient client, IHubSpotContactPropertyClient sut, string propertyName, ContactProperty property) { var response = await sut.UpdateAsync(propertyName, property); Mock.Get(client) .Verify(p => p.SendAsync <ContactProperty, ContactProperty>(HttpMethod.Put, $"/properties/v1/contacts/properties/named/{propertyName}", property, null)); }
public async Task Request_is_correct([Frozen] IHttpRestClient client, IHubSpotContactPropertyClient sut, ContactProperty property) { var response = await sut.CreateAsync(property); Mock.Get(client) .Verify(p => p.SendAsync <ContactProperty, ContactProperty>(HttpMethod.Post, "/properties/v1/contacts/properties", property, null)); }
public async Task Request_is_correct([Frozen] IHttpRestClient client, IHubSpotContactPropertyClient sut, string propertyName) { await sut.DeleteAsync(propertyName); Mock.Get(client) .Verify(p => p.SendAsync(HttpMethod.Delete, $"/properties/v1/contacts/properties/named/{propertyName}", null)); }
public async Task Request_is_correct([Frozen] IHttpRestClient client, IHubSpotContactPropertyClient sut) { var response = await sut.GetAllAsync(); Mock.Get(client) .Verify(p => p.SendAsync <ContactProperty[]>(HttpMethod.Get, "/properties/v1/contacts/properties", null)); }