in src/Google.Cloud.Functions.Testing/FunctionTestServerBuilder.cs [42:72]
private FunctionTestServerBuilder(Type functionTarget) =>
FunctionTarget = functionTarget;
/// <summary>
/// Creates a builder for the function type specified by <typeparamref name="TFunction"/>.
/// </summary>
/// <typeparam name="TFunction">The function type to be executed by the server.</typeparam>
/// <returns>A test server builder for the given function type.</returns>
public static FunctionTestServerBuilder Create<TFunction>() => new FunctionTestServerBuilder(typeof(TFunction));
/// <summary>
/// Creates a builder for the specified function type.
/// </summary>
/// <param name="targetFunction">The function type to be executed by the server.</param>
/// <returns>A test server builder for the given function type.</returns>
public static FunctionTestServerBuilder Create(Type targetFunction) => new FunctionTestServerBuilder(targetFunction);
/// <summary>
/// Specifies the startup classes to use in the test server. By default, the regular Functions Framework
/// behavior of checking the assembly containing function target for <see cref="FunctionsStartupAttribute"/>
/// is used. This method is designed to allow test-specific configuration instead. If you call this method
/// multiple times, only the last-provided value is used.
/// </summary>
/// <param name="startups">The startup classes to use, or <c>null</c> to use ones specified in the
/// assembly containing the function target.</param>
/// <returns>The same test server builder, for method chaining.</returns>
public FunctionTestServerBuilder UseFunctionsStartups(IEnumerable<FunctionsStartup>? startups)
{
_startups = startups;
return this;
}