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); }
public void DeleteRedisObject() { RedisBufferDataProvider provider = new RedisBufferDataProvider(configuration); provider.Delete(this.data); }
public void WriteRequestResponse(IApiMeterConfiguration apiConfiguration, RequestResponseData data) { RedisBufferDataProvider dataProvider = new RedisBufferDataProvider(apiConfiguration); dataProvider.Write(data); }
public void WriteToRedis() { RedisBufferDataProvider provider = new RedisBufferDataProvider(configuration); provider.Write(data); }
public void WriteRequestResponse(string configurationFilePath, RequestResponseData data) { RedisBufferDataProvider dataProvider = new RedisBufferDataProvider(new ApiMeterConfiguration(configurationFilePath)); dataProvider.Write(data); }