public async void FinishReservation(
            EStatusCode expectedStatus,
            FinishReservation mutation
            )
        {
            if (expectedStatus != EStatusCode.NotFound)
            {
                EntitiesFactory.NewReservation(id: mutation.Id).Save();
            }

            var result = await MutationsHandler.Handle(mutation);

            Assert.Equal(expectedStatus, result.Status);
            if (expectedStatus == EStatusCode.Success)
            {
                var reservationDb = await MutationsDbContext.Reservations.FindAsync(mutation.Id);

                Assert.NotNull(reservationDb.DateSale);
                Assert.NotNull(reservationDb.Announcement.DateSale);
            }
        }
 public async Task <ActionResult <MutationResult> > FinshAsync(string id, [FromBody] FinishReservation mutation)
 {
     mutation.Id = id;
     return(GetResult(await _mutationsHanlder.Handle(mutation)));
 }