in src/Google.Cloud.Functions.Testing/FunctionTestServerBuilder.cs [87:98]
public FunctionTestServerBuilder MaybeUseFunctionsStartupsFromAttributes(Type? startupAttributeSource)
{
if (startupAttributeSource is null)
{
return this;
}
var startups = FunctionsStartupAttribute.GetStartupTypes(startupAttributeSource.Assembly, startupAttributeSource)
.Select(type => Activator.CreateInstance(type))
.Cast<FunctionsStartup>()
.ToList();
return startups.Count > 0 ? UseFunctionsStartups(startups) : this;
}