예제 #1
0
        public void Should_set_default_values_for_all_string_complextypes_and_collection_fields_and_runtime_backing_fields()
        {
            var command = new SetDefaultValuesCommand(_object);

            command.Execute();

            Assert.IsNotNull(_object.PropertyOnlyForTestingPurpose);
            Assert.IsNotNull(_object.CollectionOnlyForTestingPurpose);

            Assert.IsNotNull(_object.BasePropertyOnlyForTestingPurpose);
            Assert.IsNotNull(_object.BaseCollectionOnlyForTestingPurpose);
        }
예제 #2
0
 public FluentBuilder()
 {
     _newObject = typeof(T).CreateInstance <T>();
     _commands["defaultValues"] = new SetDefaultValuesCommand(_newObject);
 }