Exemple #1
0
 public object Create(Type type, IChillObjectResolver objectResolver)
 {
     return(new Foo
     {
         Creator = nameof(FallbackFooAutoMother)
     });
 }
Exemple #2
0
        /// <inheritdoc />
        public object Create(Type type, IChillObjectResolver container)
        {
            if (!Applies(type))
            {
                throw new InvalidOperationException("ObjectMother only applies to ");
            }

            return(Create());
        }