public void HasChanged_ReturnsFalse_IfValueHasNotChanged()
        {
            // Arrange
            TableEntityContext entityContext = new TableEntityContext();
            SimpleTableEntity value = new SimpleTableEntity { Item = "Foo" };
            Type valueType = typeof(SimpleTableEntity);
            PocoEntityValueBinder<SimpleTableEntity> product = new PocoEntityValueBinder<SimpleTableEntity>(
                entityContext, "etag", value);

            // Act
            bool hasChanged = product.HasChanged;

            // Assert
            Assert.False(hasChanged);
        }
示例#2
0
        public void HasChanged_ReturnsFalse_IfValueHasNotChanged()
        {
            // Arrange
            TableEntityContext entityContext = new TableEntityContext();
            SimpleTableEntity  value         = new SimpleTableEntity {
                Item = "Foo"
            };
            Type valueType = typeof(SimpleTableEntity);
            PocoEntityValueBinder <SimpleTableEntity> product = new PocoEntityValueBinder <SimpleTableEntity>(
                entityContext, "etag", value);
            // Act
            bool hasChanged = product.HasChanged;

            // Assert
            Assert.False(hasChanged);
        }
示例#3
0
 private static void Parameters(ref SimpleTableEntity byRef, GenericClass <SimpleTableEntity> generic, SimpleITableEntity p2)
 {
 }
 private static void Parameters(ref SimpleTableEntity byRef, GenericClass <int> generic)
 {
 }