public async Task ISObjectGetUpdated(SObjectGetUpdatedResponse expected, string sObjectName) { using var handler = MockHttpMessageHandler.SetupHandler(expected); var api = handler.SetupApi <ISObjectGetUpdated>(); var result = await api.GetAsync(sObjectName); result.Should().BeEquivalentTo(expected); handler.ConfirmPath($"/services/data/{Api.Version}/sobjects/{sObjectName}/updated"); }
public async Task ISObjectGetUpdatedStart(SObjectGetUpdatedResponse expected, string sObjectName, DateTimeOffset startDateAndTime) { using var handler = MockHttpMessageHandler.SetupHandler(expected); var api = handler.SetupApi <ISObjectGetUpdated>(); var result = await api.GetAsync(sObjectName, startDateAndTime); result.Should().BeEquivalentTo(expected); var start = Uri.EscapeDataString(startDateAndTime.ToString("yyyy-MM-ddTHH:mm:ss+00:00")); handler.ConfirmPath($"/services/data/{Api.Version}/sobjects/{sObjectName}/updated?start={start}"); }