/// <summary>
 /// Initializes a new instance of the <see cref="ClientUserService"/> class.
 /// </summary>
 /// <param name="clientUserRepository">The client user repository.</param>
 /// <param name="mapper">The mapper.</param>
 /// <param name="log">The log.</param>
 /// <param name="cache">The cache.</param>
 public ClientUserService(IClientUserRepository clientUserRepository,
                          IMapper mapper, ILog log, ICacheService cache) : base(clientUserRepository, log, mapper)
 {
     this.clientUserRepository = clientUserRepository;
     this.mapper = mapper;
     this.log    = log;
     this.cache  = cache;
 }
        public void Init()
        {
            clientUserRepository = Substitute.For <IClientUserRepository>();
            var mapper = new MapperConfiguration(x => x.AddProfile(new MappingProfile())).CreateMapper();

            log               = Substitute.For <ILog>();
            cache             = Substitute.For <ICacheService>();
            clientUserService = new ClientUserService(clientUserRepository, mapper, log, cache);
        }
コード例 #3
0
 public UsersController(
     IUserService userService,
     IMapper mapper,
     IOptions <AppSettings> appSettings,
     IClientUserRepository clientUserRepository,
     TwitchBot twitchBot)
 {
     _userService          = userService;
     _mapper               = mapper;
     _appSettings          = appSettings.Value;
     _clientUserRepository = clientUserRepository;
     _twitchBot            = twitchBot;
 }
 public RegisterUserCommandHandler(
     UserManager <User> userManager,
     SignInManager <User> signInManager,
     IClientUserRepository clientRepository,
     IProviderUserRepository providerRepository,
     NotificationContext notificationContext,
     IBusControl busControl,
     AuthenticationService service)
 {
     _userManager         = userManager;
     _signInManager       = signInManager;
     _clientRepository    = clientRepository;
     _providerRepository  = providerRepository;
     _notificationContext = notificationContext;
     _busControl          = busControl;
     _service             = service;
 }
コード例 #5
0
ファイル: OrderManagerTest.cs プロジェクト: evkap/DVS
		public void TestInitialize()
		{
			_orderRepository = Substitute.For<IOrderRepository>();
			_clientUserRepository = Substitute.For<IClientUserRepository>();
			_referenceManagement = Substitute.For<IReferenceManagement>();
			_appraiserManagement = Substitute.For<IAppraiserManagement>();
			_configHelper = Substitute.For<IConfigurationHelper>();

			_target = new OrderManager(
				_orderRepository,
				_clientUserRepository,
				_referenceManagement,
				_appraiserManagement,
				_configHelper,
				Substitute.For<IAppraiserOrderRepository>(),
				Substitute.For<IChangeTrackingRepository>(),
				Substitute.For<IOrderHistoryManager>(),
				Substitute.For<IOrderDocumentsRepository>());
		}
コード例 #6
0
ファイル: OrderManager.cs プロジェクト: evkap/DVS
		public OrderManager(IOrderRepository orderRepository,
												IClientUserRepository clientUserRepository,
												IReferenceManagement referenceManagement,
												IAppraiserManagement appraiserManagement,
												IConfigurationHelper configurationHelper,
												IAppraiserOrderRepository appraiserOrderRepository,
												IChangeTrackingRepository changeTrackingRepository,
												IOrderHistoryManager orderHistoryManager,
												IOrderDocumentsRepository orderDocumentsRepository
)
		{
			_orderRepository = ValidationUtil.CheckOnNullAndThrowIfNull(orderRepository);
			_clientUserRepository = ValidationUtil.CheckOnNullAndThrowIfNull(clientUserRepository);
			_referenceManagement = ValidationUtil.CheckOnNullAndThrowIfNull(referenceManagement);
			_appraiserManagement = ValidationUtil.CheckOnNullAndThrowIfNull(appraiserManagement);
			_configurationHelper = ValidationUtil.CheckOnNullAndThrowIfNull(configurationHelper);
			_appraiserOrderRepository = ValidationUtil.CheckOnNullAndThrowIfNull(appraiserOrderRepository);
			_addressManager = new AddressManager(_referenceManagement);
			_changeTrackingRepository = ValidationUtil.CheckOnNullAndThrowIfNull(changeTrackingRepository);
			_orderHistoryManager = ValidationUtil.CheckOnNullAndThrowIfNull(orderHistoryManager);
			_orderDocumentsRepository = ValidationUtil.CheckOnNullAndThrowIfNull(orderDocumentsRepository);
		}
コード例 #7
0
ファイル: ClientUserManagerTest.cs プロジェクト: evkap/DVS
		public ClientUserManagerTest()
		{
			ClientUserRepository = Substitute.For<IClientUserRepository>();
			Target = new ClientUserManager(ClientUserRepository);
		}
コード例 #8
0
 public ClientUserService(IClientUserRepository clientUserRepository)
 {
     this.clientUserRepository = clientUserRepository;
 }
コード例 #9
0
ファイル: ClientUserManager.cs プロジェクト: evkap/DVS
		public ClientUserManager(IClientUserRepository clientUserRepository)
		{
			_clientUserRepository = ValidationUtil.CheckOnNullAndThrowIfNull(clientUserRepository);
		}
コード例 #10
0
 public ClientUserBusiness(IClientUserRepository clientUserRepository, ILogger logger)
 {
     _clientUserRepository = clientUserRepository;
     _logger = logger;
 }