File: ComponentsTestDeclarations.cs
Web Access
Project: src\src\Components\Analyzers\test\Microsoft.AspNetCore.Components.Analyzers.Tests.csproj (Microsoft.AspNetCore.Components.Analyzers.Tests)
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
 
namespace Microsoft.AspNetCore.Components.Analyzers;
 
public static class ComponentsTestDeclarations
{
    public static readonly string Source = $@"
    namespace {typeof(ParameterAttribute).Namespace}
    {{
        public class {typeof(ParameterAttribute).Name} : System.Attribute
        {{
            public bool CaptureUnmatchedValues {{ get; set; }}
        }}
 
        public class {typeof(CascadingParameterAttribute).Name} : System.Attribute
        {{
        }}
 
        public interface {typeof(IComponent).Name}
        {{
        }}
    }}
";
}