public Task <DeleteLifeEventResponseDto> Delete(int id) { return(lifeEventService.DeleteAsync(new DeleteLifeEventRequestDto() { Id = id })); }
public async Task <DeleteLifeEventResponse> Delete(int id) { return(await lifeEventService.DeleteAsync(new DeleteLifeEventRequest() { Id = id })); }
public async Task Delete() { await CreateAsync(); var lifeEventLast = await lifeEventService.GetItemsAsync(new GetLifeEventsRequestDto() { PageSize = RepositoryDefaults.PageSize }); await lifeEventService.DeleteAsync(new DeleteLifeEventRequestDto() { Id = lifeEventLast.LifeEvents.Last().Id }); Assert.IsNull(await repoLifeEvent.GetItemAsync(lifeEventLast.LifeEvents.Last().Id)); }