public ServiceLocationServiceInterceptor(EventServiceModelValidator eventServiceModelValidator) { _eventServiceModelValidator = eventServiceModelValidator; BuildUp(new Dictionary <string, Action <IInvocation> > { { nameof(GetLocationForServiceAsync), x => GetLocationForServiceAsync((int)x.Arguments[0]) }, { nameof(UpdateLocationForServiceAsync), x => UpdateLocationForServiceAsync((int)x.Arguments[0], (Location)x.Arguments[1]) } }); }
public AgreementServiceInterceptor(AgreementValidator agreementValidator, EventValidator eventValidator, ServiceSlotValidator serviceSlotValidator, EventServiceModelValidator eventServiceModelValidator) { _agreementValidator = agreementValidator; _eventValidator = eventValidator; _serviceSlotValidator = serviceSlotValidator; _eventServiceModelValidator = eventServiceModelValidator; BuildUp(new Dictionary <string, Action <IInvocation> > { { nameof(GetSingleServiceAgreementByEventSlot), x => GetSingleServiceAgreementByEventSlot((int)x.Arguments[0], (int)x.Arguments[1]) }, { nameof(GetAllServiceAgreementsByEvent), x => GetAllServiceAgreementsByEvent((int)x.Arguments[0]) }, { nameof(CreateServiceAgreement), x => CreateServiceAgreement((int)x.Arguments[0], (int)x.Arguments[1], (int)x.Arguments[2]) }, { nameof(UpdateServiceAgreement), x => UpdateServiceAgreement((ServiceAgreement)x.Arguments[0]) }, { nameof(DeleteAgreement), x => DeleteAgreement((int)x.Arguments[0], (int)x.Arguments[1]) }, { nameof(ProposeAgreement), x => ProposeAgreement((int)x.Arguments[0], (int)x.Arguments[1]) }, { nameof(AcceptAgreement), x => AcceptAgreement((int)x.Arguments[0], (int)x.Arguments[1]) }, { nameof(DeclineAgreement), x => DeclineAgreement((int)x.Arguments[0], (int)x.Arguments[1]) } }); }
public ServiceAttributeServiceInterceptor(ServiceAttributeValidator attributeValidator, EventServiceModelValidator eventServiceModelValidator) { _attributeValidator = attributeValidator; _eventServiceModelValidator = eventServiceModelValidator; BuildUp(new Dictionary <string, Action <IInvocation> > { { nameof(UpdateAttributeAsync), x => UpdateAttributeAsync((ServiceAttribute)x.Arguments[0]) }, { nameof(GetAllAttributesForServiceAsync), x => GetAllAttributesForServiceAsync((int)x.Arguments[0]) }, { nameof(GetSingleAttributeAsync), x => GetSingleAttributeAsync((int)x.Arguments[0], (int)x.Arguments[1]) } }); }
public ServiceAttributeValidator(DataContext dataContext, EventServiceModelValidator eventServiceModelValidator, AttributeSpecificationValidator attributeSpecificationValidator) { _dataContext = dataContext; _eventServiceModelValidator = eventServiceModelValidator; _attributeSpecificationValidator = attributeSpecificationValidator; }