protected void ValidateTempDataFeedDimensionKey(DimensionKey dimensionKey, string expectedDimensionA) { Assert.That(dimensionKey, Is.Not.Null); Dictionary <string, string> dimensionColumns = dimensionKey.AsDictionary(); Assert.That(dimensionColumns.Count, Is.EqualTo(1)); Assert.That(dimensionColumns.ContainsKey(TempDataFeedDimensionNameA)); Assert.That(dimensionColumns[TempDataFeedDimensionNameA], Is.EqualTo(expectedDimensionA)); }
protected void ValidateSeriesKey(DimensionKey seriesKey) { Assert.That(seriesKey, Is.Not.Null); Dictionary <string, string> dimensionColumns = seriesKey.AsDictionary(); Assert.That(dimensionColumns.Count, Is.EqualTo(2)); Assert.That(dimensionColumns.ContainsKey("city")); Assert.That(dimensionColumns.ContainsKey("category")); Assert.That(dimensionColumns["city"], Is.Not.Null.And.Not.Empty); Assert.That(dimensionColumns["category"], Is.Not.Null.And.Not.Empty); }
protected void ValidateGroupKey(DimensionKey groupKey) { Assert.That(groupKey, Is.Not.Null); Dictionary <string, string> dimensionColumns = groupKey.AsDictionary(); Assert.That(dimensionColumns.Count, Is.GreaterThan(0)); Assert.That(dimensionColumns.Count, Is.LessThanOrEqualTo(2)); foreach (KeyValuePair <string, string> column in dimensionColumns) { Assert.That(column.Key, Is.EqualTo("city").Or.EqualTo("category")); Assert.That(column.Value, Is.Not.Null.And.Not.Empty); } }