public async Task ISObjectGetDeleted(SObjectGetDeleted expected, string sObjectName) { using var handler = MockHttpMessageHandler.SetupHandler(expected); var api = handler.SetupApi <ISObjectGetDeleted>(); var result = await api.GetAsync(sObjectName); result.Should().BeEquivalentTo(expected); handler.ConfirmPath($"/services/data/{Api.Version}/sobjects/{sObjectName}/deleted"); }
public async Task ISObjectGetDeletedStart(SObjectGetDeleted expected, string sObjectName, DateTimeOffset startDateAndTime) { using var handler = MockHttpMessageHandler.SetupHandler(expected); var api = handler.SetupApi <ISObjectGetDeleted>(); 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}/deleted?start={start}"); }