public SolutionsMessageHandler(IProblemManager manager, IMessagesSender sender, IBackupServerManager backups,
                                IBackupSender backupSender, ICsDataStore nodeStore)
     : base(manager, sender, backupSender)
 {
     this.backups   = backups;
     this.nodeStore = nodeStore;
 }
Beispiel #2
0
 public NodeTracker(ICsDataStore csDataStore, ITimeProvider timeProvider, IMediator mediator,
                    CommunicationsServerConfiguration communicationsServerConfiguration)
 {
     this.csDataStore  = csDataStore;
     this.timeProvider = timeProvider;
     this.mediator     = mediator;
     this.communicationsServerConfiguration = communicationsServerConfiguration;
 }
Beispiel #3
0
 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;
 }
Beispiel #4
0
        public NodeTrackerTests()
        {
            store    = A.Fake <ICsDataStore>();
            time     = A.Fake <ITimeProvider>();
            mediator = A.Fake <IMediator>();
            config   = new CommunicationsServerConfiguration {
                CommunicationsTimeout = Timeout
            };

            A.CallTo(() => time.Now()).Returns(CurrentDate);

            tracker = new NodeTracker(store, time, mediator, config);
        }
Beispiel #5
0
        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);
        }
Beispiel #6
0
 public ProblemDispatcher(ICsDataStore nodeStore, IProblemManager manager)
 {
     this.nodeStore = nodeStore;
     this.manager   = manager;
 }