public async Task Handle(MergeRequestReopenedEvent notification, CancellationToken cancellationToken)
    {
        var mergeRequest = await _readModelRepository.GetAsync <MergeRequestDetail>(notification.AggregateId);

        mergeRequest.When(notification);

        await _readModelRepository.UpdateAsync(mergeRequest);
    }
Exemplo n.º 2
0
 private void When(MergeRequestReopenedEvent @event)
 {
     _status = MergeRequestStatus.Open;
 }
Exemplo n.º 3
0
 public void When(MergeRequestReopenedEvent @event)
 {
     Status               = MergeRequestStatus.Open;
     LastModifierId       = @event.UserId;
     LastModificationTime = @event.OccurrenceTime;
 }