Пример #1
0
        public async Task <CommitmentsResponse> GetCommitmentsAsync(CommitmentsRequest request)
        {
            await Task.Delay(2000);

            return(new CommitmentsResponse {
                Succeeded = true,
                Result = new List <Commitment> {
                    new Commitment {
                        DisasterId = 2,
                        IsActive = true,
                        StartDate = DateTime.UtcNow.AddDays(-1),
                        EndDate = DateTime.UtcNow.AddDays(5)
                    },
                    new Commitment {
                        DisasterId = 3,
                        IsActive = false,
                        StartDate = DateTime.UtcNow.AddYears(-1),
                        EndDate = DateTime.UtcNow.AddYears(-1).AddDays(10)
                    },
                    new Commitment {
                        DisasterId = 4,
                        IsActive = false,
                        StartDate = DateTime.UtcNow.AddYears(-1).AddDays(180),
                        EndDate = DateTime.UtcNow.AddYears(-1).AddDays(190)
                    }
                }
            });
        }
Пример #2
0
 public async Task <CommitmentsResponse> GetCommitmentsAsync(CommitmentsRequest request)
 {
     throw new NotImplementedException();
 }