public void Super_GetSuperSlice_Columns()
        {
            // arrange
            int expectedCount = 2;

            // act
            var columns = _superFamily.Get(new BytesType[] { _testKey, _testKey2 }, new AsciiType[] { _testSuperName });

            // assert
            Assert.AreEqual(expectedCount, columns.Count());
        }
예제 #2
0
        public void Super_GetSlice_Columns()
        {
            // arrange
            int expectedCount = 2;

            // act
            var columns = _superFamily
                          .Get(new BytesType[] { _testKey, _testKey2 })
                          .ForSuperColumn(_testSuperName)
                          .FetchColumns(new AsciiType[] { "Test1", "Test2" })
                          .Execute();

            // assert
            Assert.Equal(expectedCount, columns.Count());
        }
예제 #3
0
        public void SuperCounterColumnFamily()
        {
            //arrange
            long value = 1L;

            //act
            _superCounterFamily.InsertCounterColumn(_testKey, _testSuperName, _testName, value);
            var column = _superCounterFamily.Get(_testKey).Execute();
            var actual = column.FirstOrDefault().Columns.FirstOrDefault();

            // assert
            Assert.Equal(_testSuperName, (string)actual.ColumnName);
            Assert.Equal(_testName, (string)actual.Columns[0].ColumnName);
            Assert.Equal(value, (double)actual.Columns[0].ColumnValue);
        }
예제 #4
0
        public void SuperColumnFamily()
        {
            // arrange
            double         value      = Math.PI;
            DateTimeOffset timestamp  = DateTimeOffset.UtcNow;
            int            timeToLive = 1;

            // act
            _superFamily.InsertColumn(_testKey, _testSuperName, _testName, value, timestamp, timeToLive);
            var column = _superFamily.Get(_testKey).Execute();
            var actual = column.FirstOrDefault().Columns.FirstOrDefault();

            // assert
            Assert.Equal(_testSuperName, (string)actual.ColumnName);
            Assert.Equal(_testName, (string)actual.Columns[0].ColumnName);
            Assert.Equal(value, (double)actual.Columns[0].ColumnValue);
        }