public void Setup()
        {
            testManager = new ReplicationTestManager();

            redisFactory = configuration =>
            {
                var result = counter % 2 == 0 ? testManager.Master : testManager.Slave;
                counter++;

                return(result.Object);
            };

            scheduler = new TestScheduler();
            instance  = CreateFactory();
        }
 public void Setup()
 {
     timer       = new Subject <long>();
     testManager = new ReplicationTestManager();
     manager     = new ReplicationManager(new NullLogger <ReplicationManager>(), testManager.Master.Object, testManager.Slave.Object, timer);
 }