/// <summary>
 /// Registers a dependency
 /// </summary>
 /// <param name="dependency"></param>
 /// <returns></returns>
 public ISimpleDependencyContainer RegisterDependency(Func <IDependencyBuilder, IDependency> dependency) => Run(this, () => _container.Add(dependency(DependencyBuilder.New())));