public void TopologyContainsPendingBackupsForCurrentNodeWillStartsBackupReplication() { node.SetTopology(new Topology(new[] { new Segment { AssignedEndpoint = NodeEndpoint.ForTest(91), PendingBackups = { endPoint } }, }, 1)); executer.AssertWasCalled(x => x.RegisterForExecution(Arg <OnlineSegmentReplicationCommand> .Is.TypeOf)); }
public void WillRegisterSegmentsNotAssignedToMeForReplication() { master.Stub(x => x.Join(Arg.Is(endPoint))) .Return(new[] { new Segment { AssignedEndpoint = NodeEndpoint.ForTest(9) }, }); node.Start(); executer.AssertWasCalled(x => x.RegisterForExecution(Arg <OnlineSegmentReplicationCommand> .Is.TypeOf)); }