Beispiel #1
0
 /// <summary>
 /// Specify a dependency
 /// </summary>
 /// <returns>
 /// Returns a DependencySpecification instance
 /// </returns>
 public static DependencySpecification Need()
 {
     var spec = new DependencySpecification();
     specs.Add(spec);
     return spec;
 }
 /// <summary>
 /// Get an a concrete implementation of IDependency based on details in spec
 /// </summary>
 /// <param name="spec">
 /// The spec.
 /// </param>
 /// <returns>
 /// A concrete type adhering to IDependency
 /// </returns>
 public static IDependency Build(DependencySpecification spec)
 {
     return spec.Build();
 }