public WCFHost(IBanManager banManager, IClientManager clientManager, IAdminManager adminManager, IGameManager gameManager) { BanManager = banManager; ClientManager = clientManager; AdminManager = adminManager; GameManager = gameManager; }
public void Init() { DataProtectection.Instance = new NoProtection(); _testConfig = new TestAuthorizationServerConfiguration(); _clientManager = new TestClientManager() { Id = "codeclient", Secret = "secret", OAuthFlow = OAuthFlow.Code, RedirectUri = "https://prod.local" }; }
public ApiController(IAccountService accountService, IClientManager clientManager, IEncryption encryption) { _accountService = accountService; _clientManager = clientManager; _encryption = encryption; }
public IdentityUnitOfWork(string connectionString) { _db = new ApplicationContext(connectionString); _userManager = new ApplicationUserManager(new UserStore<ApplicationUser>(_db)); _roleManager = new ApplicationRoleManager(new RoleStore<ApplicationRole>(_db)); _clientManager = new ClientManager(_db); }
public ClientVerifier(IClientManager clientManager, IAccountClientManager accountClientManager) { _clientManager = clientManager; _accountClientManager = accountClientManager; Logger = NullLogger.Instance; }
public CurrentDayTimeTracker(IClientManager clientManager, ITimeEntryManager timeEntryManager) { ClientManager = clientManager; TimeEntryManager = timeEntryManager; TimeEntryViewModel = new TimeEntryViewModel(clientManager); CurrentDate = DateTime.Now; }
public ClientController(IClientManager clientManager, IUserClientService svcUserClient, IAuthorizer authorizer) { _clientManager = clientManager; _svcUserClient = svcUserClient; Logger = NullLogger.Instance; _authorizer = authorizer; }
/// <summary> /// Connect to the server and authenticate the user /// </summary> public eLoginEnum ConnectToServer(String AUserName, String APassword, out Int32 AProcessID, out String AWelcomeMessage, out Boolean ASystemEnabled, out String AError, out IPrincipal AUserInfo) { AError = ""; String ConnectionError; AUserInfo = null; ASystemEnabled = false; AWelcomeMessage = string.Empty; AProcessID = -1; try { FClientManager = TConnectionHelper.Connect(); // register Client session at the PetraServer eLoginEnum ReturnValue = ConnectClient(AUserName, APassword, out AProcessID, out AWelcomeMessage, out ASystemEnabled, out ConnectionError, out AUserInfo); if (ReturnValue != eLoginEnum.eLoginSucceeded) { AError = ConnectionError; return ReturnValue; } } catch (System.Net.Sockets.SocketException) { return eLoginEnum.eLoginServerNotReachable; } catch (Exception exp) { TLogging.Log(exp.ToString() + Environment.NewLine + exp.StackTrace, TLoggingType.ToLogfile); throw new EServerConnectionGeneralException(exp.ToString()); } if (TClientSettings.RunAsStandalone) { FPollClientTasks = null; } else { // // start the PollClientTasks Thread (which needs to run as long as the Client is running) // FPollClientTasks = new TPollClientTasks(FClientID); } return eLoginEnum.eLoginSucceeded; }
public void SetUp() { game = MockRepository.GenerateMock<ITicTacToe>(); clientManager = MockRepository.GenerateMock<IClientManager>(); clientUpdater = MockRepository.GenerateMock<ITicTacToeClientUpdater>(); server = new TicTacToeServer( game, clientManager, clientUpdater); }
public IPFilterServiceBehavior(IBanManager verifier, IClientManager clientManager) { if (verifier == null) throw new ArgumentNullException("verifier"); if (clientManager == null) throw new ArgumentNullException("clientManager"); _verifier = verifier; _clientManager = clientManager; }
public void Init() { DataProtectection.Instance = new NoProtection(); _testConfig = new TestAuthorizationServerConfiguration(); _storedGrantManager = new TestTokenHandleManager("abc", "client", "https://validredirect"); _clientManager = new TestClientManager() { Id = "client", Secret = "secret", OAuthFlow = OAuthFlow.Client, AllowRefreshTokens = false }; _client = Principal.Create("Test", new Claim("client_id", "client"), new Claim("secret", "secret")); }
public void TestInitialize() { _context = new CompositionHelper(Settings.Default.MainConnectionString, Settings.Default.FilesConnectionString); _fixture = new Fixture(); _manager = _context.Kernel.Get<IClientManager>(); _userRepository = _context.Kernel.Get<IUserRepository>(); _clientRepository = _context.Kernel.Get<IClientRepository>(); _transitRepository = _context.Kernel.Get<ITransitRepository>(); }
public TicTacToeServer(ITicTacToe ticTacToeGame, IClientManager clientManager, ITicTacToeClientUpdater clientUpdater) { _ticTacToeGame = ticTacToeGame; _ticTacToeGame.GameCompleted += OnGameCompleted; _clientManager = clientManager; _clientManager.ClientRoleAssigned += OnClientRoleAssigned; _clientUpdater = clientUpdater; }
public SalesAdminController(IBranchManager iBranchManager, IClientManager iClientManager, IOrderManager iOrderManager, IEmployeeManager iEmployeeManager, IInventoryManager iInventoryManager, IInvoiceManager iInvoiceManager, ICommonManager iCommonManager, IProductManager iProductManager) { _iBranchManager = iBranchManager; _iClientManager = iClientManager; _iOrderManager = iOrderManager; _iEmployeeManager = iEmployeeManager; _iInventoryManager = iInventoryManager; _iInvoiceManager = iInvoiceManager; _iProductManager = iProductManager; _iCommonManager = iCommonManager; }
public void CreateTransaction_InvalidCustomerID() { IClientManager clientManager = Substitute.For <IClientManager>(); ISalesManager salesManager = Substitute.For <ISalesManager>(); IFinanceManager financeManager = Substitute.For <IFinanceManager>(); IEmailSender emailSender = Substitute.For <IEmailSender>(); ITransactionManager transactionManager = new TransactionManager(clientManager, salesManager, financeManager, emailSender); Assert.Throws <KeyNotFoundException>(() => transactionManager.CreateTransaction(Guid.NewGuid(), Guid.NewGuid(), Guid.NewGuid(), Guid.NewGuid(), 5), "Client does not exists in database."); }
public SonarLinkTeamExplorerNavigationItem([Import(typeof(SVsServiceProvider))] IServiceProvider serviceProvider, IClientManager clientManager) { var service = serviceProvider.GetService(typeof(ITeamExplorer)); if (service != null) { _teamExplorer = service as ITeamExplorer; } _clientManager = clientManager; }
public IdentityUnitOfWork(string connectionString) { db = new ApplicationContext(connectionString); userManager = new ApplicationUserManager(new UserStore <ApplicationUser>(db)); roleManager = new ApplicationRoleManager(new RoleStore <ApplicationRole>(db)); clientManager = new ClientManager(db); videoRepository = new VideoRepository(db); categoryRepository = new CategoryRepository(db); commentRepository = new CommentRepository(db); playlistRepository = new PlaylistRepository(db); }
public ApiClient(IAuthorizationManager authMgr, IClientManager clientMgr) { _authMgr = authMgr; _clientMgr = clientMgr; _client = new HttpClient { BaseAddress = new Uri(BASE_URI), }; _client.DefaultRequestHeaders.Add(API_KEY_HEADER, API_KEY); }
// GET: Factory/Delivery public DeliveryController(IProductManager iProductManager, IFactoryDeliveryManager iFactoryDeliveryManager, IBranchManager iBranchManager, IInventoryManager iInventoryManager, ICommonManager iCommonManager, IInvoiceManager iInvoiceManager, IClientManager iClientManager, IDeliveryManager iDeliveryManager) { _iProductManager = iProductManager; _iFactoryDeliveryManager = iFactoryDeliveryManager; _iBranchManager = iBranchManager; _iInventoryManager = iInventoryManager; _iCommonManager = iCommonManager; _iClientManager = iClientManager; _iInvoiceManager = iInvoiceManager; _iDeliveryManager = iDeliveryManager; }
public GameProcessManager( IClientManager clientManager, IConnectionManager connectionManager, IGameStateManager gameStateManager, ISocketManager socketManager) { _clientManager = clientManager; _connectionManager = connectionManager; _gameStateManager = gameStateManager; _socketManager = socketManager; }
public UnitOfWork(string connectionString) { db = new LibraryContext(connectionString); userManager = new LibraryUserManager(new UserStore <LibraryUser>(db)); roleManager = new LibraryRoleManager(new RoleStore <LibraryRole>(db)); clientManager = new ClientManager(db); var provider = new DpapiDataProtectionProvider("OnlineLibrary"); userManager.UserTokenProvider = new DataProtectorTokenProvider <LibraryUser>(provider.Create("EmailConfirmation")); userManager.EmailService = new IdentityEmailSender(); }
public UnitOfWork(string connectionString) { db = new ApplicationContext(connectionString); userManager = new ApplicationUserManager(new UserStore <ApplicationUser>(db)); roleManager = new ApplicationRoleManager(new RoleStore <ApplicationRole>(db)); clientManager = new ClientManager(db); messageManager = new MessageManager(db); dialogManager = new DialogManager(db); friendshipManager = new FriendshipManager(db); requestManager = new RequestManager(db); }
/// <summary>, /// Constructor. /// </summary> /// <param name="teamExplorer">TeamExplorer VS service.</param> /// <param name="clientManager">Manages the configured <see cref="ISonarQubeClient"/> instances.</param> public ConnectPageViewModel(ITeamExplorer explorer, IClientManager clientManager) { _teamExplorer = explorer; _clientManager = clientManager; IsSignedIn = (clientManager.Clients.Count > 0); SignInCommand = new AsyncCommand(OnSignInAsync); ViewProjectsCommand = new Command(OnViewProjects); SignOutCommand = new Command(OnSignOut); }
public TableDrawer( IOutputDevice outputDevice, IBlockOfSharesManager blockOfSharesManager, IClientManager clientManager, IShareManager shareManager) { this.outputDevice = outputDevice; this.blockOfSharesManager = blockOfSharesManager; this.clientManager = clientManager; this.shareManager = shareManager; }
public SmtpServer(Lazy<ITcpListenerAdapter> tcpListener, INetworkMessager networkMessager, IClientManager clientManager) { _tcpListener = tcpListener; _networkMessager = networkMessager; _clientManager = clientManager; _clientManager.MessageReceived += (sender, args) => { OnMessageReceived(args); }; }
public HomeController(IBranchManager iBranchManager, IClientManager iClientManager, IOrderManager iOrderManager, IEmployeeManager iEmployeeManager, IInventoryManager iInventoryManager, ICommonManager iCommonManager, IAccountsManager iAccountsManager, IReportManager iReportManager, IDeliveryManager iDeliveryManager) { _iBranchManager = iBranchManager; _iClientManager = iClientManager; _iOrderManager = iOrderManager; _iEmployeeManager = iEmployeeManager; _iCommonManager = iCommonManager; _iInventoryManager = iInventoryManager; _iAccountsManager = iAccountsManager; _iReportManager = iReportManager; _iDeliveryManager = iDeliveryManager; }
public RequisitionController(IDeliveryManager iDeliveryManager, IInventoryManager iInventoryManager, IProductManager iProductManager, IClientManager iClientManager, IInvoiceManager iInvoiceManager, ICommonManager iCommonManager, IOrderManager iOrderManager, IBranchManager iBranchManager, IEmployeeManager iEmployeeManager) { _iDeliveryManager = iDeliveryManager; _iInventoryManager = iInventoryManager; _iProductManager = iProductManager; _iClientManager = iClientManager; _iInvoiceManager = iInvoiceManager; _iCommonManager = iCommonManager; _iOrderManager = iOrderManager; _iBranchManager = iBranchManager; _iEmployeeManager = iEmployeeManager; }
public OAuthController(IClientManager clientManager, IReadOnlyDictionary <string, ITokenFlow> tokenFlowsByGrantTypes, IFlowResponses flowResponses, IClientGrantManager clientGrantManager, IReadOnlyDictionary <AuthorizationFlowType, IGrantFlow> authFlowDictionary) { _clientManager = clientManager; _tokenFlowsByGrantTypes = tokenFlowsByGrantTypes; _flowResponses = flowResponses; _clientGrantManager = clientGrantManager; _authFlowDictionary = authFlowDictionary; }
public IdentityUnitOfWork(string connectionString) { db = new ApplicationContext(connectionString); userManager = new ApplicationUserManager(new UserStore <ApplicationUser>(db)); roleManager = new ApplicationRoleManager(new RoleStore <ApplicationRole>(db)); clientManager = new ClientManager(db); customerRepository = new CustomerRepository(db); orderRepository = new OrderRepository(db); productRepository = new ProductRepository(db); discountCardRepository = new DiscountCardRepository(db); }
public IdentityUnitOfWork(string connectionString) { db = new ApplicationContext(connectionString); userManager = new ApplicationUserManager(new UserStore <ApplicationUser>(db)); roleManager = new ApplicationRoleManager(new RoleStore <ApplicationRole>(db)); clientManager = new ClientManager(db); recipeManager = new RecipeManager(db); productManager = new ProductManager(db); recipeProductManager = new RecipeProductManager(db); recipeClientProfileManager = new RecipeClientProfileManager(db); rankManager = new RankManager(db); }
public HomeController(IBranchManager iBranchManager, IClientManager iClientManager, IDepartmentManager iDepartmentManager, IEmployeeManager iEmployeeManager, IRegionManager iRegionManager, ITerritoryManager iTerritoryManager, IProductManager iProductManager, IAccountsManager iAccountsManager, IReportManager iReportManager) { _iBranchManager = iBranchManager; _iClientManager = iClientManager; _iDepartmentManager = iDepartmentManager; _iEmployeeManager = iEmployeeManager; _iRegionManager = iRegionManager; _iTerritoryManager = iTerritoryManager; _iProductManager = iProductManager; _iAccountsManager = iAccountsManager; _iReportManager = iReportManager; }
public ClientManagerTest() { // Maak de interne database aan _dbContext = InitIntDb.CreateDbContext(); // creeert nieuw heap object FillDbContext(); // Maak een nieuwe clientRepository die de interne database gebruikt _clientRepository = new ClientRepository(_dbContext, _loggerClientRepository); // Maak een nieuwe clientmanager die de nieuwe ClientRepository gebruikt _clientManager = new ClientManager(_clientRepository); }
public OrderController(IDeliveryManager iDeliveryManager, IInventoryManager iInventoryManager, IProductManager iProductManager, IClientManager iClientManager, IInvoiceManager iInvoiceManager, ICommonManager iCommonManager, IOrderManager iOrderManager, IBranchManager iBranchManager, IReportManager iReportManager) { _iDeliveryManager = iDeliveryManager; _iInventoryManager = iInventoryManager; _iProductManager = iProductManager; _iClientManager = iClientManager; _iInvoiceManager = iInvoiceManager; _iCommonManager = iCommonManager; _iOrderManager = iOrderManager; _iBranchManager = iBranchManager; _iReportManager = iReportManager; }
public IdentityUnitOfWork(string connectionString) { db = new ApplicationContext(); userManager = new ApplicationUserManager(new UserStore <User>(db)); roleManager = new ApplicationRoleManager(new RoleStore <Role>(db)); clientManager = new ClientManager(db); genreManager = new GenreManager(db); singerManager = new SingerManager(db); musicManager = new MusicManager(db); playlistManager = new PlaylistManager(db); playlistMusicManager = new PlaylistMusicManager(db); }
public SmtpServer(Lazy <ITcpListenerAdapter> tcpListener, INetworkMessager networkMessager, IClientManager clientManager) { _tcpListener = tcpListener; _networkMessager = networkMessager; _clientManager = clientManager; _clientManager.MessageReceived += (sender, args) => { OnMessageReceived(args); }; }
public ChatGridViewModel(IClientManager manager) { _manager = manager; MyProfile = new MyProfileModel(manager); ServerStateLine = new ServerStateLineViewModel(manager); EditChatLine = new EditChatLineViewModel(manager); //MessagesFeed = new MessagesFeedViewModel(manager); MyProfileLine = new ProfileLineViewModel(manager) { ProfileModel = MyProfile.MyProfile }; ChatCollection = new ChatCollectionViewModel(manager, MyProfile.Chats); }
public IdentityUnitOfWork(string connectionString) { _database = new ApplicationContext(connectionString); _userManager = new ApplicationUserManager(new UserStore <ApplicationUser>(_database)); _roleManager = new ApplicationRoleManager(new RoleStore <ApplicationRole>(_database)); _clientManager = new ClientManager(_database); _customerRepository = new CustomerRepository(_database); _orderRepository = new OrderRepository(_database); _roomFotoRepository = new RoomFotoRepository(_database); _roomRepository = new RoomRepository(_database); }
public ClientController( IIdentityService identity, IClientManager manager, IClientFileRepository files, IClientPresenter clients, ISenderRepository senders) { _identity = identity; _manager = manager; _files = files; _clients = clients; _senders = senders; }
public RequestForQuoteToolBarViewModel(IOptionRequestParser optionRequestParser, IClientManager clientManager, IBookManager bookManager) { AddNewRequestCommand = new AddRequestCommand(this); ClearNewRequestCommand = new ClearNewRequestCommand(this); GetTodaysRequestsCommand = new GetTodaysRequestsCommand(this); this.optionRequestParser = optionRequestParser; this.clientManager = clientManager; this.bookManager = bookManager; InitializeCollections(); InitializeEventSubscriptions(); }
public LocationService( IWorld world, IClientManager clientManager, ICombatService combatService, INpcService npcService, IEncounterService encounterService) { _world = world; _clientManager = clientManager; _combatService = combatService; _npcService = npcService; _encounterService = encounterService; }
public TransactionManager( IClientManager clientManager, IBlockOfSharesRepository blockOfSharesRepository, IClientRepository clientRepository, ISharesRepository sharesRepository, ITransactionRepository transactionRepository) { this.clientManager = clientManager; this.blockOfSharesRepository = blockOfSharesRepository; this.clientRepository = clientRepository; this.sharesRepository = sharesRepository; this.transactionRepository = transactionRepository; }
public AddEditClientForm(IClientManager clientManager, Client client) { InitializeComponent(); this.client = client; this.clientManager = clientManager; SetClientTypesComboBoxValues(); clientTypeComboBox.SelectedIndex = clientManager.GetClientTypeComboBoxIndexById(client.TypeId); nameTextBox.Text = client.Name; surnameTextBox.Text = client.Surname; secondNameTextBox.Text = client.Secondname; phoneTextBox.Text = client.Phone; manRadioButton.Checked = (bool)client.Gender; womanRadioButton.Checked = !(bool)client.Gender; }
private bool UpdateClientList(out List <string> disconnectedClients) { IClientManager clientManager = ServiceRegistration.Get <IClientManager>(); ICollection <ClientConnection> clients = clientManager.ConnectedClients; ICollection <string> connectedClientSystemIDs = new List <string>(clients.Count); foreach (ClientConnection clientConnection in clients) { connectedClientSystemIDs.Add(clientConnection.Descriptor.System.Address); } disconnectedClients = _connectedClients.Except(connectedClientSystemIDs).ToList(); _connectedClients = connectedClientSystemIDs.ToList(); return(disconnectedClients.Count > 0); }
public TokenController( IResourceOwnerCredentialValidation rocv, IAuthorizationServerConfiguration config, IStoredGrantManager handleManager, IAssertionGrantValidation assertionGrantValidator, TokenService tokenService, IClientManager clientManager) { _rocv = rocv; _config = config; _handleManager = handleManager; _assertionGrantValidator = assertionGrantValidator; _tokenService = tokenService; _clientManager = clientManager; }
public override void Run() { CommandLine.CommandEnvironment = new CommandEnvironment(this.GetType().Name, ConnectArguments.ScenarioArguments); _socketArgs = CommandLine.Parse<SocketCommandArgs>(); if (ConnectArguments.IsServer()) { server = new SocketServer(ConnectArguments.Port, _socketArgs); server.StartServer(); } else { clients = new SocketClientManager(ConnectArguments, _socketArgs); clients.Start(); } }
public AccountController(ISsoSetting ssoSetting, IAuthenticationService svcAuthentication, IAuthService svcAuth, IAuthorizationCodeManager authorizationCodeManager, IClientVerifier clientVerifier, ITranslation translation, IAccountRegisterManager accountRegisterManager, IClientManager clientManager, IValidateCodeBuilder validateCodeBuilder, IAuthorizationCodeHolder authorizationCodeHolder) { _svcAuthentication = svcAuthentication; _svcAuth = svcAuth; _authorizationCodeManager = authorizationCodeManager; _clientVerifier = clientVerifier; _translation = translation; _accountRegisterManager = accountRegisterManager; _clientManager = clientManager; _validateCodeBuilder = validateCodeBuilder; _authorizationCodeHolder = authorizationCodeHolder; _ssoSetting = ssoSetting; Logger =NullLogger.Instance; }
public DailyScrumManager(IClientManager clientManager, IProjectManager projectManager) { _clientManager = clientManager; _projectManager = projectManager; }
public AuthorizeRequestValidator(IClientManager clientManager) { _clientManager = clientManager; }
public HomeViewModel(IClientManager clientManager) { _clientManager = clientManager; GetClientsList(); }
public TokenRequestValidator(IClientManager clientManager) { _clientManager = clientManager; }
public TokenRequestValidator(IStoredGrantManager handleManager, IClientManager clientManager) { _handleManager = handleManager; _clientManager = clientManager; }
public AccountRegisterManager(IAccountService accountService,IClientManager clientManager) { _accountService = accountService; _clientManager = clientManager; }
/// <summary> /// Creates a new <see cref="TimeEntryViewModel"/>. /// </summary> public TimeEntryViewModel(IClientManager clientManager) { _clientManager = clientManager; }
public void SetUp() { this.clientManager = new SqlServerClientManager(new SqlServerClientManagerConfiguration(this.instance.CreateConnectionStringBuilder().ToString(), this.databaseName), new PBKDF2CryptoProvider()); }
public ClientManagerWithEvent(IClientManager manager, IEventFacade events) { _manager = manager; _events = events; }