コード例 #1
0
 public void GetAllRedisObjects()
 {
     RedisBufferDataProvider provider = new RedisBufferDataProvider(configuration);
     List<RequestResponseData> actualData = provider.GetAll().ToList();
     Assert.AreEqual(1, actualData.Count);
     Assert.AreEqual(data.ID, actualData[0].ID);
 }
コード例 #2
0
 public void DeleteRedisObject()
 {
     RedisBufferDataProvider provider = new RedisBufferDataProvider(configuration);
     provider.Delete(this.data);
 }
コード例 #3
0
 public void WriteRequestResponse(IApiMeterConfiguration apiConfiguration, RequestResponseData data)
 {
     RedisBufferDataProvider dataProvider = new RedisBufferDataProvider(apiConfiguration);
     dataProvider.Write(data);
 }
コード例 #4
0
 public void WriteToRedis()
 {
     RedisBufferDataProvider provider = new RedisBufferDataProvider(configuration);
     provider.Write(data);
 }
コード例 #5
0
 public void WriteRequestResponse(string configurationFilePath, RequestResponseData data)
 {
     RedisBufferDataProvider dataProvider = new RedisBufferDataProvider(new ApiMeterConfiguration(configurationFilePath));
     dataProvider.Write(data);
 }