예제 #1
0
            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));
            }
예제 #2
0
            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));
            }