Beispiel #1
0
 /// <summary>
 /// Shortcut to set an inline dependency to an Instance
 /// </summary>
 /// <param name="instance"></param>
 /// <returns></returns>
 public ConstructorInstance Is(Instance instance)
 {
     _instance.AddInline(instance);
     if (_propertyName != null)
     {
         instance.Name = _propertyName;
     }
     return(_instance);
 }
Beispiel #2
0
 /// <summary>
 /// Shortcut to set an inline dependency to an Instance
 /// </summary>
 /// <param name="instance"></param>
 /// <returns></returns>
 public ConstructorInstance Is(Instance instance)
 {
     _instance.AddInline(instance);
     if (_propertyName != null)
     {
         instance.Name = _propertyName;
         instance.InlineIsLimitedToExactNameMatch = true;
     }
     return(_instance);
 }