private string _currentUserId = null !;                                 // Must be initialised as the 1st step in each test

        public User_Update_Propagates_To_User_References_Tests()
        {
            _userCommandService    = Container.GetService <IUserCommandService>() !;
            _backlogCommandService = Container.GetService <IBacklogItemCommandService>() !;
            _backlogQueryService   = Container.GetService <IBacklogItemByIdQueryService>() !;
            _commentCommandService = Container.GetService <IBacklogItemCommentCommandService>() !;
        }
 public BacklogItem_List_Query_By_Mentioned_User_Tests()
 {
     _userCommandService        = Container.GetService <IUserCommandService>() !;
     _backlogItemCommandService = Container.GetService <IBacklogItemCommandService>() !;
     _commentCommandService     = Container.GetService <IBacklogItemCommentCommandService>() !;
     _queryBacklogItemService   = Container.GetService <IBacklogItemListQueryService>() !;
 }
Beispiel #3
0
 public BacklogItem_Modified_History_Tests()
 {
     _commandService        = Container.GetService <IBacklogItemCommandService>() !;
     _commentCommandService = Container.GetService <IBacklogItemCommentCommandService>() !;
     _queryByIdService      = Container.GetService <IBacklogItemByIdQueryService>() !;
     _userCmdService        = Container.GetService <IUserCommandService>() !;
 }
Beispiel #4
0
 public QueuesController(
     IUserQueryService userQueryService,
     IUserCommandService userCommandService)
 {
     _userQueryService   = userQueryService;
     _userCommandService = userCommandService;
 }
Beispiel #5
0
 public BacklogItem_List_Query_By_CustomField_Tests()
 {
     _commandService            = Container.GetService <IBacklogItemCommandService>() !;
     _queryService              = Container.GetService <IBacklogItemListQueryService>() !;
     _customFieldCommandService = Container.GetService <ICustomFieldCommandService>() !;
     _userCmdService            = Container.GetService <IUserCommandService>() !;
 }
        public BacklogItem_List_Query_Basic_Filters_Tests()
        {
            _commandService     = Container.GetService <IBacklogItemCommandService>() !;
            _queryService       = Container.GetService <IBacklogItemListQueryService>() !;
            _userCommandService = Container.GetService <IUserCommandService>() !;

            _currentUserId = CreateSampleUser().Result.Id !;
        }
Beispiel #7
0
 public UsersController(
     IAgencyQueryService agencyQueryService,
     IUserCommandService userCommandService,
     IUserQueryService userQueryService)
 {
     _agencyQueryService = agencyQueryService;
     _userQueryService   = userQueryService;
     _userCommandService = userCommandService;
 }
 public UsersController(IUserReadService userReadService, IUserCommandService userCommandService, IVacancyCommandService vacancyCommandService, IVacancyReadService vacancyReadService, ITokenHelper tokenHelper, IOptionReadService optionReadService)
 {
     this.userReadService       = userReadService;
     this.userCommandService    = userCommandService;
     this.vacancyReadService    = vacancyReadService;
     this.vacancyCommandService = vacancyCommandService;
     this.tokenHelper           = tokenHelper;
     this.optionReadService     = optionReadService;
 }
Beispiel #9
0
        public SeededUsers(IUserCommandService userService)
        {
            _userService = userService;

            _userFaker = new AutoFaker <UserAddUpdRequest>()
                         .RuleFor(fake => fake.AvatarUrl, fake => null)
                         .RuleFor(fake => fake.FirstName, fake => fake.Name.FirstName())
                         .RuleFor(fake => fake.LastName, fake => fake.Name.LastName())
                         .RuleFor(fake => fake.Email, (_, p) => $"{p.FirstName}.{p.LastName}@yabt.com");
        }
 public WorkspacesController(iChatContext context, IUserQueryService userQueryService,
                             IUserCommandService userCommandService, IChannelCommandService channelCommandService,
                             IConversationCommandService conversationCommandService, IWorkspaceCommandService workspaceCommandService)
 {
     _userQueryService           = userQueryService;
     _userCommandService         = userCommandService;
     _channelCommandService      = channelCommandService;
     _conversationCommandService = conversationCommandService;
     _workspaceCommandService    = workspaceCommandService;
 }
Beispiel #11
0
 public UsersController(IUserQueryService userQueryService,
                        IUserCommandService userCommandService,
                        IWorkspaceQueryService workspaceService, IChannelCommandService channelCommandService,
                        IConversationCommandService conversationCommandService,
                        ICacheService cacheService)
 {
     _userQueryService           = userQueryService;
     _userCommandService         = userCommandService;
     _workspaceQueryService      = workspaceService;
     _channelCommandService      = channelCommandService;
     _conversationCommandService = conversationCommandService;
     _cacheService = cacheService;
 }
Beispiel #12
0
 public AddUserCommandHandler(IUserCommandService userCommandService)
 {
     this.userCommandService = userCommandService;
 }
 public UserManagement(IUserCommandService commandService, IUserQueryService queryService)
 {
     this.CommandService = commandService;
     this.QueryService   = queryService;
 }
Beispiel #14
0
 public Task <ActionResult <UserReference> > Create([FromServices] IUserCommandService service, UserAddUpdRequest dto) => service.Create(dto).ToActionResultOfT();
Beispiel #15
0
 public RegisterController(IUserCommandService userCommandService)
 {
     _userCommandService = userCommandService;
 }
Beispiel #16
0
 public Task <ActionResult <UserReference> > Update([FromServices] IUserCommandService service,
                                                    [FromRoute] string id,
                                                    UserAddUpdRequest dto
                                                    )
 => service.Update(id, dto).ToActionResultOfT();
Beispiel #17
0
 public RegistrationForm()
 {
     InitializeComponent();
     _service = ServiceContainer.Get <IUserCommandService>();
 }
Beispiel #18
0
 public ProjectCommandService(ICompanyRepository companyRepository, IUserCommandService userCommandService, UserManager <User> userManager)
 {
     _companyRepository  = companyRepository;
     _userCommandService = userCommandService;
     _userManager        = userManager;
 }
Beispiel #19
0
 public AppController(ICacheService cacheService, IUserQueryService userQueryService, IUserCommandService userCommandService)
 {
     _cacheService       = cacheService;
     _userQueryService   = userQueryService;
     _userCommandService = userCommandService;
 }
Beispiel #20
0
 public User_Crud_Tests()
 {
     _userCommandService = Container.GetService <IUserCommandService>() !;
     _userQueryService   = Container.GetService <IUserQueryService>() !;
 }
Beispiel #21
0
 public EraseUserDataCommandHandler(IUserCommandService userCommandService)
 {
     this.userCommandService = userCommandService;
 }
Beispiel #22
0
 public AuthUserRequestHandler(IUserCommandService userCommandService)
 {
     this.userCommandService = userCommandService;
 }
Beispiel #23
0
 public UpdatePasswordCommandHandler(IUserCommandService userCommandService, ILogger logger)
 {
     this.userCommandService = userCommandService;
     this.logger             = logger;
 }
Beispiel #24
0
 public BacklogItem_List_Query_By_CurrentUser_Tests()
 {
     _commandService = Container.GetService <IBacklogItemCommandService>() !;
     _queryService   = Container.GetService <IBacklogItemListQueryService>() !;
     _userCmdService = Container.GetService <IUserCommandService>() !;
 }
Beispiel #25
0
 public Task <ActionResult <UserReference> > Delete([FromServices] IUserCommandService service,
                                                    [FromRoute] string id
                                                    )
 => service.Delete(id).ToActionResultOfT();
 public async Task <string> Add([GraphQLSession] AuthSession session, [Service] IUserCommandService service, CreateUserVm model)
 {
     return(Ok(await service.Create(session.CompanyId, model)));
 }
        public async Task <string> Activate([GraphQLSession] AuthSession session, [Service] IUserCommandService service, string id)
        {
            await service.Activate(session.CompanyId, id);

            return(Ok());
        }
 public UserController(IUserCommandService commandService, IUserQueryService queryService)
 {
     CommandService = commandService;
     QueryService   = queryService;
 }
Beispiel #29
0
        public LoginForm()
        {
            InitializeComponent();

            _userService = ServiceContainer.Get <IUserCommandService>();
        }