/// <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); }
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; }
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>()); }
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); }
public ClientUserManagerTest() { ClientUserRepository = Substitute.For<IClientUserRepository>(); Target = new ClientUserManager(ClientUserRepository); }
public ClientUserService(IClientUserRepository clientUserRepository) { this.clientUserRepository = clientUserRepository; }
public ClientUserManager(IClientUserRepository clientUserRepository) { _clientUserRepository = ValidationUtil.CheckOnNullAndThrowIfNull(clientUserRepository); }
public ClientUserBusiness(IClientUserRepository clientUserRepository, ILogger logger) { _clientUserRepository = clientUserRepository; _logger = logger; }