/// <summary>
 /// Validate dependency
 /// </summary>
 /// <param name="dependencyStruct"></param>
 /// <exception cref="ArgumentException"></exception>
 private static void Validate(DependencyStruct dependencyStruct)
 {
     if (dependencyStruct.Type == null)
     {
         throw new ArgumentException("Type of dependency cannot be null");
     }
 }
 /// <summary>
 /// Returns
 /// </summary>
 /// <param name="dependency"></param>
 /// <returns></returns>
 public IDependencyBuilder FromDependency(IDependency dependency) => Run(this, () => _dependencyStruct = new DependencyStruct(dependency.Type, dependency.Name, dependency.Args, dependency.Singleton));