public SolutionsMessageHandler(IProblemManager manager, IMessagesSender sender, IBackupServerManager backups, IBackupSender backupSender, ICsDataStore nodeStore) : base(manager, sender, backupSender) { this.backups = backups; this.nodeStore = nodeStore; }
public SendServerStateToBackup(IMessagesSender sender, Func <ITcpClient> clientFactory, ICsDataStore dataStore, IMediator mediator, IProblemManager problemManager, CommunicationServerStorage communicationServerStorage) { this.sender = sender; this.clientFactory = clientFactory; this.dataStore = dataStore; this.mediator = mediator; this.problemManager = problemManager; this.communicationServerStorage = communicationServerStorage; }
public SendServerStateToBackupTests() { sender = A.Fake <IMessagesSender>(); dataStore = A.Fake <ICsDataStore>(); tcpClient = A.Fake <ITcpClient>(); mediator = A.Fake <IMediator>(); problemManager = A.Fake <IProblemManager>(); communicationServerStorage = A.Fake <CommunicationServerStorage>(); A.CallTo(() => dataStore.ConnectedNodes).Returns(new[] { new NodeInfo(123, "test", new string[0]) }); handler = new SendServerStateToBackup(sender, () => tcpClient, dataStore, mediator, problemManager, communicationServerStorage); }
public ReactToDeadNode(IProblemManager manager) { this.manager = manager; }
public ProblemDispatcher(ICsDataStore nodeStore, IProblemManager manager) { this.nodeStore = nodeStore; this.manager = manager; }
public SolveRequestHandler(IProblemManager manager, IMessagesSender sender, IBackupSender backupSender) : base(manager, sender, backupSender) { }
public SolutionRequestHandler(IProblemManager manager, IMessagesSender sender) { this.manager = manager; this.sender = sender; }
public BaseProblemHandler(IProblemManager manager, IMessagesSender sender, IBackupSender backupSender) { this.manager = manager; this.sender = sender; this.backupSender = backupSender; }
public Brkga(IProblemManager problemManager) { ProblemManager = problemManager; SolutionRepository = new SolutionRepository(TopEntitiesManager.GetContext()); }
public BackupProblemSync(IProblemManager manager) { this.manager = manager; }
public BackupSolvePartialProblemsHandler(IProblemManager manager) { this.manager = manager; }
public BackupDivideProblemHandler(IProblemManager manager) { this.manager = manager; }