public RecordingManagerTests() { this.recordedCalls = new List <CallData>(); this.callStorage = A.Fake <ICallStorage>(); A.CallTo(() => this.callStorage.Load()).Returns(this.recordedCalls); }
public void Setup() { this.recordedCalls = new List <CallData>(); this.callStorage = A.Fake <ICallStorage>(); A.CallTo(() => this.callStorage.Load()).Returns(this.recordedCalls); }
public void Setup() { this.recordedCalls = new List<CallData>(); this.callStorage = A.Fake<ICallStorage>(); A.CallTo(() => this.callStorage.Load()).Returns(this.recordedCalls); }
public RecordingManagerTests() { this.recordedCalls = new List<CallData>(); this.callStorage = A.Fake<ICallStorage>(); A.CallTo(() => this.callStorage.Load()).Returns(this.recordedCalls); }
public void SetUp() { this.recordedCalls = new List <CallData>(); this.callStorage = A.Fake <ICallStorage>(); Configure.Fake(this.callStorage) .CallsTo(x => x.Load()) .Returns(this.recordedCalls); }
/// <summary> /// Initializes a new instance of the <see cref="RecordingManager"/> class. /// </summary> /// <param name="recordingId">The recording id.</param> /// <param name="storage">The storage.</param> public RecordingManager(ICallStorage storage) { this.storage = storage; var recordedCalls = storage.Load(); this.IsRecording = recordedCalls == null; this.callQueue = CreateCallsList(recordedCalls); this.recordedCalls = new List <CallDataMetadata>(this.callQueue); }
/// <summary> /// Initializes a new instance of the <see cref="RecordingManager"/> class. /// </summary> /// <param name="storage">The storage.</param> public RecordingManager(ICallStorage storage) { this.storage = storage; var recordedCalls = storage.Load(); this.IsRecording = recordedCalls == null; this.callQueue = CreateCallsList(recordedCalls); this.recordedCalls = new List<CallDataMetadata>(this.callQueue); }
/// <summary> /// Initializes a new instance of the <see cref="RecordingManager"/> class. /// </summary> /// <param name="storage">The storage.</param> public RecordingManager(ICallStorage storage) { Guard.AgainstNull(storage, nameof(storage)); this.storage = storage; var callsFromStorage = storage.Load(); this.IsRecording = callsFromStorage == null; this.callQueue = CreateCallsList(callsFromStorage); this.recordedCalls = new List<CallDataMetadata>(this.callQueue); }
/// <summary> /// Initializes a new instance of the <see cref="RecordingManager"/> class. /// </summary> /// <param name="storage">The storage.</param> public RecordingManager(ICallStorage storage) { Guard.AgainstNull(storage, nameof(storage)); this.storage = storage; var callsFromStorage = storage.Load(); this.IsRecording = callsFromStorage == null; this.callQueue = CreateCallsList(callsFromStorage); this.recordedCalls = new List <CallDataMetadata>(this.callQueue); }
public static void SetStore(ICallStorage storage) { recorder = new DefaultRecorder(storage); initialized = true; }