public void DynamicToObjectMeasurement()
        {
            // Arrange
            DynamicTableEntity dynamicTableEntity = ObjectsFactory.GetCountryDynamicTableEntity();
            Stopwatch          stopWatch          = Stopwatch.StartNew();
            Country            country            = null;

            // Act
            for (int i = 0; i < IteractionsCount; i++)
            {
                country = new Country
                {
                    Area            = (double)dynamicTableEntity.Properties["Area"].DoubleValue,
                    Continent       = dynamicTableEntity.PartitionKey,
                    Formed          = dynamicTableEntity.Properties["Formed"].DateTimeOffsetValue.Value.DateTime,
                    Id              = (Guid)dynamicTableEntity.Properties["Id"].GuidValue,
                    IsExists        = (bool)dynamicTableEntity.Properties["IsExists"].BooleanValue,
                    Name            = dynamicTableEntity.RowKey,
                    Population      = (long)dynamicTableEntity.Properties["Population"].Int64Value,
                    PresidentsCount = (int)dynamicTableEntity.Properties["PresidentsCount"].Int32Value,
                    TopSecretKey    = dynamicTableEntity.Properties["TopSecretKey"].BinaryValue
                };
            }

            stopWatch.Stop();

            Assert.NotNull(country);

            Console.WriteLine(ResultFormat, IteractionsCount, stopWatch.ElapsedMilliseconds);
        }
        public void DynamicToPocoMeasurement()
        {
            // Arrange
            var converter = new TableEntityConverter <Country>();
            DynamicTableEntity dynamicTableEntity = ObjectsFactory.GetCountryDynamicTableEntity();
            Stopwatch          stopWatch          = Stopwatch.StartNew();
            Country            entity             = null;

            // Act
            for (int i = 0; i < IteractionsCount; i++)
            {
                entity = converter.GetEntity(dynamicTableEntity);
            }

            stopWatch.Stop();

            Assert.NotNull(entity);

            Console.WriteLine(ResultFormat, IteractionsCount, stopWatch.ElapsedMilliseconds);
        }
        public void DynamicToTableMeasurement()
        {
            // Arrange
            DynamicTableEntity dynamicTableEntity = ObjectsFactory.GetCountryDynamicTableEntity();
            Stopwatch          stopWatch          = Stopwatch.StartNew();
            var tableEntity = new CountryTableEntity();

            // Act
            for (int i = 0; i < IteractionsCount; i++)
            {
                tableEntity.PartitionKey = dynamicTableEntity.PartitionKey;
                tableEntity.RowKey       = dynamicTableEntity.RowKey;
                tableEntity.ReadEntity(dynamicTableEntity.Properties, null);
            }

            stopWatch.Stop();

            Assert.NotNull(tableEntity);

            Console.WriteLine(ResultFormat, IteractionsCount, stopWatch.ElapsedMilliseconds);
        }