Skip to content

Commit

Permalink
Merge pull request #17 from SoftTeam-Emergentes/fix/routes
Browse files Browse the repository at this point in the history
Fix/routes
  • Loading branch information
mauriprado authored Nov 14, 2023
2 parents 4ff6548 + cc244a2 commit 7de5e49
Show file tree
Hide file tree
Showing 81 changed files with 597 additions and 515 deletions.
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
using MediatR;
using PERUSTARS.AtEventManagement.Domain.Model.Aggregates;
using PERUSTARS.AtEventManagement.Domain.Model.Commads;
using PERUSTARS.AtEventManagement.Domain.Model.domainevents;
using PERUSTARS.AtEventManagement.Domain.Model.Repositories;
using PERUSTARS.AtEventManagement.Domain.Model.ValueObjects;
using PERUSTARS.Shared.Domain.Repositories;
using System;
using System;
using System.Threading;
using System.Threading.Tasks;
using MediatR;
using PERUSTARS.ArtEventManagement.Domain.Model.Aggregates;
using PERUSTARS.ArtEventManagement.Domain.Model.Commads;
using PERUSTARS.ArtEventManagement.Domain.Model.domainevents;
using PERUSTARS.ArtEventManagement.Domain.Model.Repositories;
using PERUSTARS.ArtEventManagement.Domain.Model.ValueObjects;
using PERUSTARS.Shared.Domain.Repositories;

namespace PERUSTARS.AtEventManagement.Application.artevents.commands
namespace PERUSTARS.ArtEventManagement.Application.ArtEvents.Commands
{
public class CancelArtEventCommandHandler : IRequestHandler<CancelArtEventCommand,string>
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
using MediatR;
using PERUSTARS.AtEventManagement.Domain.Model.Aggregates;
using PERUSTARS.AtEventManagement.Domain.Model.Commads;
using PERUSTARS.AtEventManagement.Domain.Model.Repositories;
using PERUSTARS.Shared.Domain.Repositories;
using System;
using System;
using System.Threading;
using System.Threading.Tasks;
using MediatR;
using PERUSTARS.ArtEventManagement.Domain.Model.Aggregates;
using PERUSTARS.ArtEventManagement.Domain.Model.Commads;
using PERUSTARS.ArtEventManagement.Domain.Model.Repositories;
using PERUSTARS.Shared.Domain.Repositories;

namespace PERUSTARS.AtEventManagement.Application.artevents.commands
namespace PERUSTARS.ArtEventManagement.Application.ArtEvents.Commands
{
public class DeleteArtEventCommandHandler : IRequestHandler<DeleteArtEventCommand, string>
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
using MediatR;
using PERUSTARS.AtEventManagement.Domain.Model.Aggregates;
using PERUSTARS.AtEventManagement.Domain.Model.Commads;
using PERUSTARS.AtEventManagement.Domain.Model.Repositories;
using PERUSTARS.AtEventManagement.Domain.Model.ValueObjects;
using PERUSTARS.Shared.Domain.Repositories;
using System.Threading;
using System.Threading;
using System.Threading.Tasks;
using MediatR;
using PERUSTARS.ArtEventManagement.Domain.Model.Aggregates;
using PERUSTARS.ArtEventManagement.Domain.Model.Commads;
using PERUSTARS.ArtEventManagement.Domain.Model.Repositories;
using PERUSTARS.Shared.Domain.Repositories;

namespace PERUSTARS.AtEventManagement.Application.artevents.commands
namespace PERUSTARS.ArtEventManagement.Application.ArtEvents.Commands
{
public class EditArtEventCommandHandler : IRequestHandler<EditArtEventCommand, string>
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
using MediatR;
using PERUSTARS.AtEventManagement.Domain.Model.Aggregates;
using PERUSTARS.AtEventManagement.Domain.Model.Commads;
using PERUSTARS.AtEventManagement.Domain.Model.Repositories;
using PERUSTARS.AtEventManagement.Domain.Model.ValueObjects;
using PERUSTARS.Shared.Domain.Repositories;
using System.Threading;
using System.Threading;
using System.Threading.Tasks;
using MediatR;
using PERUSTARS.ArtEventManagement.Domain.Model.Aggregates;
using PERUSTARS.ArtEventManagement.Domain.Model.Commads;
using PERUSTARS.ArtEventManagement.Domain.Model.Repositories;
using PERUSTARS.ArtEventManagement.Domain.Model.ValueObjects;
using PERUSTARS.Shared.Domain.Repositories;

namespace PERUSTARS.AtEventManagement.Application.artevents.commands
namespace PERUSTARS.ArtEventManagement.Application.ArtEvents.Commands
{
public class FinishArtEventCommandHandler : IRequestHandler<FinishArtEventCommand, string>
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
using MediatR;
using PERUSTARS.AtEventManagement.Domain.Model.Aggregates;
using PERUSTARS.AtEventManagement.Domain.Model.Commads;
using PERUSTARS.AtEventManagement.Domain.Model.Repositories;
using PERUSTARS.AtEventManagement.Domain.Model.ValueObjects;
using PERUSTARS.Shared.Domain.Repositories;
using System.Threading;
using System.Threading;
using System.Threading.Tasks;
using MediatR;
using PERUSTARS.ArtEventManagement.Domain.Model.Aggregates;
using PERUSTARS.ArtEventManagement.Domain.Model.Commads;
using PERUSTARS.ArtEventManagement.Domain.Model.Repositories;
using PERUSTARS.ArtEventManagement.Domain.Model.ValueObjects;
using PERUSTARS.Shared.Domain.Repositories;

namespace PERUSTARS.AtEventManagement.Application.artevents.commands
namespace PERUSTARS.ArtEventManagement.Application.ArtEvents.Commands
{
public class RegisterArtEventCommandHandler : IRequestHandler<RegisterArtEventCommand, string>
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
using MediatR;
using PERUSTARS.AtEventManagement.Domain.Model.Aggregates;
using PERUSTARS.AtEventManagement.Domain.Model.Commads;
using PERUSTARS.AtEventManagement.Domain.Model.Repositories;
using PERUSTARS.AtEventManagement.Domain.Model.domainevents;
using System;
using System.Threading;
using System.Threading.Tasks;
using MediatR;
using PERUSTARS.ArtEventManagement.Domain.Model.Aggregates;
using PERUSTARS.ArtEventManagement.Domain.Model.Commads;
using PERUSTARS.ArtEventManagement.Domain.Model.domainevents;
using PERUSTARS.ArtEventManagement.Domain.Model.Repositories;
using PERUSTARS.ProfileManagement.Domain.Model.Aggregates;
using PERUSTARS.ProfileManagement.Domain.Repositories;
using PERUSTARS.Shared.Domain.Repositories;
using System.Threading;
using System.Threading.Tasks;
using System;

namespace PERUSTARS.AtEventManagement.Application.artevents.commands
namespace PERUSTARS.ArtEventManagement.Application.ArtEvents.Commands
{
public class RegisterParticipantToArtEventCommandHandler : IRequestHandler<RegisterParticipantToArtEventCommand, string>
{
Expand All @@ -32,7 +32,7 @@ public async Task<string> Handle(RegisterParticipantToArtEventCommand request, C
{
ArtEvent artEvent = _artEventRepository.FindByIdAsync(request.artEventId).Result;
Hobbyist hobbyist = _hobbyistRepository.FindByIdAsync(request.hobbyistId).Result;
PERUSTARS.AtEventManagement.Domain.Model.Aggregates.Participant participant = new PERUSTARS.AtEventManagement.Domain.Model.Aggregates.Participant(
Domain.Model.Aggregates.Participant participant = new Domain.Model.Aggregates.Participant(
id: 0,
userName: "A",
registerDateTime: new System.DateTime(),
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
using MediatR;
using PERUSTARS.AtEventManagement.Domain.Model.Aggregates;
using PERUSTARS.AtEventManagement.Domain.Model.Commads;
using PERUSTARS.AtEventManagement.Domain.Model.domainevents;
using PERUSTARS.AtEventManagement.Domain.Model.Repositories;
using PERUSTARS.AtEventManagement.Domain.Model.ValueObjects;
using PERUSTARS.Shared.Domain.Repositories;
using System.Threading;
using System.Threading;
using System.Threading.Tasks;
using MediatR;
using PERUSTARS.ArtEventManagement.Domain.Model.Aggregates;
using PERUSTARS.ArtEventManagement.Domain.Model.Commads;
using PERUSTARS.ArtEventManagement.Domain.Model.domainevents;
using PERUSTARS.ArtEventManagement.Domain.Model.Repositories;
using PERUSTARS.ArtEventManagement.Domain.Model.ValueObjects;
using PERUSTARS.Shared.Domain.Repositories;

namespace PERUSTARS.AtEventManagement.Application.artevents.commands
namespace PERUSTARS.ArtEventManagement.Application.ArtEvents.Commands
{
public class RescheduleArtEventCommandHandler : IRequestHandler<RescheduleArtEventCommand, string>
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
using MediatR;
using PERUSTARS.AtEventManagement.Domain.Model.Aggregates;
using PERUSTARS.AtEventManagement.Domain.Model.Commads;
using PERUSTARS.AtEventManagement.Domain.Model.Repositories;
using PERUSTARS.AtEventManagement.Domain.Model.ValueObjects;
using PERUSTARS.Shared.Domain.Repositories;
using System.Threading;
using System.Threading;
using System.Threading.Tasks;
using MediatR;
using PERUSTARS.ArtEventManagement.Domain.Model.Aggregates;
using PERUSTARS.ArtEventManagement.Domain.Model.Commads;
using PERUSTARS.ArtEventManagement.Domain.Model.Repositories;
using PERUSTARS.ArtEventManagement.Domain.Model.ValueObjects;
using PERUSTARS.Shared.Domain.Repositories;

namespace PERUSTARS.AtEventManagement.Application.artevents.commands
namespace PERUSTARS.ArtEventManagement.Application.ArtEvents.Commands
{
public class StartArtEventCommandHandler : IRequestHandler<StartArtEventCommand, string>
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
using MediatR;
using PERUSTARS.AtEventManagement.Domain.Model.domainevents;
using System.Threading;
using System.Threading.Tasks;
using MediatR;
using PERUSTARS.ArtEventManagement.Domain.Model.domainevents;
using PERUSTARS.CommunicationAndNotificationManagement.Domain.Model.Commands;
using PERUSTARS.CommunicationAndNotificationManagement.Domain.Services;
using System.Threading;
using System.Threading.Tasks;

namespace PERUSTARS.AtEventManagement.Application.artevents.events
namespace PERUSTARS.ArtEventManagement.Application.ArtEvents.Events
{
public class ArtEventRescheduledEventHandler : INotificationHandler<ArtEventRescheduledEvent>
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
using MediatR;
using PERUSTARS.AtEventManagement.Domain.Model.domainevents;
using System.Threading;
using System.Threading.Tasks;
using MediatR;
using PERUSTARS.ArtEventManagement.Domain.Model.domainevents;
using PERUSTARS.CommunicationAndNotificationManagement.Domain.Model.Commands;
using PERUSTARS.CommunicationAndNotificationManagement.Domain.Services;
using PERUSTARS.Shared.Domain.Repositories;
using System.Threading;
using System.Threading.Tasks;

namespace PERUSTARS.AtEventManagement.Application.artevents.events
namespace PERUSTARS.ArtEventManagement.Application.ArtEvents.Events
{
public class CancelledArtEventEventHandler : INotificationHandler<ArtEventCancelledEvent>
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
using MediatR;
using PERUSTARS.AtEventManagement.Domain.Model.domainevents;
using PERUSTARS.DataAnalytics.Interface.ACL;
using System.Threading;
using System.Threading;
using System.Threading.Tasks;
using MediatR;
using PERUSTARS.ArtEventManagement.Domain.Model.domainevents;
using PERUSTARS.DataAnalytics.Interface.ACL;

namespace PERUSTARS.AtEventManagement.Application.artevents.events
namespace PERUSTARS.ArtEventManagement.Application.ArtEvents.Events
{
public class ParticipantRegisteredEventHandler : INotificationHandler<ParticipantRegisteredEvent>
{
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
using System.Collections.Generic;
using System.Threading;
using System.Threading.Tasks;
using MediatR;
using PERUSTARS.ArtEventManagement.Domain.Model.Queries;
using PERUSTARS.ArtEventManagement.Domain.Model.Repositories;
using PERUSTARS.ArtEventManagement.Interfaces.REST.Resources;
using PERUSTARS.ProfileManagement.Domain.Repositories;

namespace PERUSTARS.ArtEventManagement.Application.ArtEvents.Queries;

Check failure on line 10 in PERUSTARS/PERUSTARS/ArtEventManagement/Application/ArtEvents/Queries/GetArtEventsByHobbyistQueryHandler.cs

View workflow job for this annotation

GitHub Actions / build

{ expected

public class GetArtEventsByHobbyistQueryHandler: IRequestHandler<GetArtEventsByHobbyistQuery, IEnumerable<ArtEventResource>>
{
private readonly IArtEventRepository _artEventRepository;
private readonly IParticipantRepository _participantRepository;
private readonly IHobbyistRepository _hobbyistRepository;

public Task<IEnumerable<ArtEventResource>> Handle(GetArtEventsByHobbyistQuery request, CancellationToken cancellationToken)
{
throw new System.NotImplementedException();
}
}

Check failure on line 22 in PERUSTARS/PERUSTARS/ArtEventManagement/Application/ArtEvents/Queries/GetArtEventsByHobbyistQueryHandler.cs

View workflow job for this annotation

GitHub Actions / build

} expected
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
using PERUSTARS.AtEventManagement.Domain.Model.Aggregates;
using PERUSTARS.AtEventManagement.Domain.Model.Repositories;
using PERUSTARS.AtEventManagement.Domain.Services.ArtEvent;
using System;
using System.Collections.Generic;
using System.Collections.Generic;
using PERUSTARS.ArtEventManagement.Domain.Model.Aggregates;
using PERUSTARS.ArtEventManagement.Domain.Model.Repositories;
using PERUSTARS.ArtEventManagement.Domain.Services.ArtEvent;

namespace PERUSTARS.AtEventManagement.Application.artevents.service
namespace PERUSTARS.ArtEventManagement.Application.ArtEvents.Service
{
public class ArtEventQueryService: IArtEventQueryService
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
using MediatR;
using PERUSTARS.AtEventManagement.Domain.Model.Commads;
using PERUSTARS.AtEventManagement.Domain.Model.Repositories;
using PERUSTARS.AtEventManagement.Domain.Services.ArtEvent;
using System.Threading.Tasks;
using System.Threading.Tasks;
using MediatR;
using PERUSTARS.ArtEventManagement.Domain.Model.Commads;
using PERUSTARS.ArtEventManagement.Domain.Services.ArtEvent;

namespace PERUSTARS.AtEventManagement.Application.artevents.service
namespace PERUSTARS.ArtEventManagement.Application.ArtEvents.Service
{
public class ArtEventService : IArtEventCommandService
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
using MediatR;
using PERUSTARS.AtEventManagement.Domain.Model.Aggregates;
using PERUSTARS.AtEventManagement.Domain.Model.Commads;
using PERUSTARS.AtEventManagement.Domain.Model.Repositories;
using PERUSTARS.Shared.Domain.Repositories;
using System;
using System;
using System.Threading;
using System.Threading.Tasks;
using MediatR;
using PERUSTARS.ArtEventManagement.Domain.Model.Commads;
using PERUSTARS.ArtEventManagement.Domain.Model.Repositories;
using PERUSTARS.Shared.Domain.Repositories;

namespace PERUSTARS.AtEventManagement.Application.Participant.Command
namespace PERUSTARS.ArtEventManagement.Application.Participant.Command
{
public class DeleteParticipantCommandHandler:IRequestHandler<DeleteParticipantCommand,string>
{
Expand All @@ -23,7 +22,7 @@ public async Task<string> Handle(DeleteParticipantCommand request, CancellationT
{
try
{
PERUSTARS.AtEventManagement.Domain.Model.Aggregates.Participant p = _participantRepository.FindByIdAsync(request.id).Result;
Domain.Model.Aggregates.Participant p = _participantRepository.FindByIdAsync(request.id).Result;
if (p != null)
{
_participantRepository.Remove(p);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
using MediatR;
using PERUSTARS.AtEventManagement.Domain.Model.Commads;
using PERUSTARS.AtEventManagement.Domain.Services.Participant;
using System.Threading.Tasks;
using System.Threading.Tasks;
using MediatR;
using PERUSTARS.ArtEventManagement.Domain.Model.Commads;
using PERUSTARS.ArtEventManagement.Domain.Services.Participant;

namespace PERUSTARS.AtEventManagement.Application.Participant.Command.Service
namespace PERUSTARS.ArtEventManagement.Application.Participant.Command.Service
{
public class ParticipantCommandService:IParticipantCommandService
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
using PERUSTARS.AtEventManagement.Domain.Model.Repositories;
using PERUSTARS.AtEventManagement.Domain.Services.Participant;
using System.Collections.Generic;
using System.Collections.Generic;
using PERUSTARS.ArtEventManagement.Domain.Model.Repositories;
using PERUSTARS.ArtEventManagement.Domain.Services.Participant;

namespace PERUSTARS.AtEventManagement.Application.Participant.Queries
namespace PERUSTARS.ArtEventManagement.Application.Participant.Queries
{
public class ParticipantQueryService: IParticipantQueryService
{
private readonly IParticipantRepository _participantRepository;
public ParticipantQueryService(IParticipantRepository participantRepository)
{
this._participantRepository = participantRepository;
_participantRepository = participantRepository;
}

public IEnumerable<Domain.Model.Aggregates.Participant> getParticipantByEventId(long id)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
using System;
using System.Collections.Generic;
using PERUSTARS.AtEventManagement.Domain.Model.ValueObjects;
using PERUSTARS.ArtEventManagement.Domain.Model.ValueObjects;
using PERUSTARS.ProfileManagement.Domain.Model.Aggregates;

namespace PERUSTARS.AtEventManagement.Domain.Model.Aggregates
namespace PERUSTARS.ArtEventManagement.Domain.Model.Aggregates
{
public class ArtEvent
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
using System;
using PERUSTARS.ProfileManagement.Domain.Model.Aggregates;


namespace PERUSTARS.AtEventManagement.Domain.Model.Aggregates
namespace PERUSTARS.ArtEventManagement.Domain.Model.Aggregates
{
public class Participant
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
using MediatR;
using PERUSTARS.AtEventManagement.Domain.Model.ValueObjects;

namespace PERUSTARS.AtEventManagement.Domain.Model.Commads
namespace PERUSTARS.ArtEventManagement.Domain.Model.Commads
{
public class CancelArtEventCommand:IRequest<string>{
public int id { get; set; }
Expand Down
Loading

0 comments on commit 7de5e49

Please sign in to comment.