Example #1
0
        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));
        }
        public async Task <GetLifeEventListResponse> Get(string json)
        {
            var resp = await lifeEventService.GetItemsAsync(JsonConvert.DeserializeObject <GetLifeEventListRequest>(json));

            return(resp);
        }
        public async Task <GetLifeEventsResponseDto> Get([FromQuery] GetLifeEventsRequestDto request)
        {
            var resp = await lifeEventService.GetItemsAsync(request);

            return(resp);
        }