public GetSurveyListQueryHandlerTests(QueryTestFixture fixture) { _context = fixture.Context; _mapper = fixture.Mapper; fixture.MockUserInformation.Setup(x => x.GetUser()).Returns(Task.FromResult("Test")); _getUserInformation = fixture.MockUserInformation.Object; }
public Handler(IApplicationDBContext context, IMediator mediator, IGetUserInformation getUserInformation) { _context = context; _mediator = mediator; _getUserInformation = getUserInformation; }
public DeleteSurveyCommandHandler(IApplicationDBContext context, IGetUserInformation getUserInformation) { _context = context; _getUserInformation = getUserInformation; }
/// <summary> /// GetSurveyListQueryHandler /// </summary> /// <param name="context">Application db context</param> /// <param name="mapper">mapper</param> /// <param name="getUserInformation">get user information</param> public GetSurveyListQueryHandler(IApplicationDBContext context, IMapper mapper, IGetUserInformation getUserInformation) { _context = context; _mapper = mapper; _getUserInformation = getUserInformation; }
public GetSurveyDetailQueryHandler(IApplicationDBContext context, IGetUserInformation getUserInformation) { _context = context; _getUserInformation = getUserInformation; }
public Handler(IApplicationDBContext context, IGetUserInformation getUserInformation) { _context = context; _getUserInformation = getUserInformation; }