Changes the CDTReplicator.state property to be equal to CDTReplicatorSta...


If the replication was stopped via a call to CDTReplicator -stop, the status should be 'Stopped'. Otherwise, if
the replication stops on its own because it completes, the status is set to CDTReplicatorStatusComplete.

Changes the CDTReplicator code to clarify the object's state,
progress (changesTotal and changesProcessed), and messages sent to delegates
during start, stop and updates to the replicator.

Adds tests in ReplicationAcceptance using a delegate to stop replication
immediately after starting.
On 8 Aug 2014, at 23:49, Adam Cox wrote:

>> @@ -0,0 +1,16 @@
>> +//
>> +//  ReplicatorDelegates.h
>> +//  ReplicationAcceptance
>> +//
>> +//  Created by Adam Cox on 7/28/14.
>> +//
>> +//
>> +#import <Foundation/Foundation.h>
>> +#import "CDTReplicatorDelegate.h"
>> +#import "CDTReplicator.h"
>> +
>> +@class CDTDatastoreManager;
>> +
>> +
>> +@interface MReplicatorDelegateForStatusTest :  NSObject 
>> <CDTReplicatorDelegate>
>
> yeah... how about CDTTestReplicatorDelegateStopAfterStart?

That sounds good, given it's very specific.