diff --git a/src-examples/ProxyInterfaceConsumer/Http/IHttpClient.cs b/src-examples/ProxyInterfaceConsumer/Http/IHttpClient.cs index 5ef47f5..85f03e5 100644 --- a/src-examples/ProxyInterfaceConsumer/Http/IHttpClient.cs +++ b/src-examples/ProxyInterfaceConsumer/Http/IHttpClient.cs @@ -2,8 +2,8 @@ using System.Net.Http; namespace ProxyInterfaceConsumer.Http; -[ProxyInterfaceGenerator.Proxy(typeof(HttpClient), true)] +[Speckle.ProxyGenerator.Proxy(typeof(HttpClient), true)] public partial interface IHttpClient : IHttpMessageInvoker { } -[ProxyInterfaceGenerator.Proxy(typeof(HttpMessageInvoker))] +[Speckle.ProxyGenerator.Proxy(typeof(HttpMessageInvoker))] public partial interface IHttpMessageInvoker { } diff --git a/src-examples/ProxyInterfaceConsumer/IAddress.cs b/src-examples/ProxyInterfaceConsumer/IAddress.cs index 6e890dc..57e5c7d 100644 --- a/src-examples/ProxyInterfaceConsumer/IAddress.cs +++ b/src-examples/ProxyInterfaceConsumer/IAddress.cs @@ -1,4 +1,4 @@ -using ProxyInterfaceGenerator; +using Speckle.ProxyGenerator; namespace ProxyInterfaceConsumer { diff --git a/src-examples/ProxyInterfaceConsumer/IGeneratorExecutionContext.cs b/src-examples/ProxyInterfaceConsumer/IGeneratorExecutionContext.cs index 30a57d1..67831c0 100644 --- a/src-examples/ProxyInterfaceConsumer/IGeneratorExecutionContext.cs +++ b/src-examples/ProxyInterfaceConsumer/IGeneratorExecutionContext.cs @@ -1,5 +1,5 @@ namespace ProxyInterfaceConsumer { - // [ProxyInterfaceGenerator.Proxy(typeof(Microsoft.CodeAnalysis.GeneratorExecutionContext))] + // [Speckle.ProxyGenerator.Proxy(typeof(Microsoft.CodeAnalysis.GeneratorExecutionContext))] public partial interface IGeneratorExecutionContext { } } diff --git a/src-examples/ProxyInterfaceConsumer/IPerson.cs b/src-examples/ProxyInterfaceConsumer/IPerson.cs index 5313ac0..5bcc7f6 100644 --- a/src-examples/ProxyInterfaceConsumer/IPerson.cs +++ b/src-examples/ProxyInterfaceConsumer/IPerson.cs @@ -1,4 +1,4 @@ -using ProxyInterfaceGenerator; +using Speckle.ProxyGenerator; namespace ProxyInterfaceConsumer { diff --git a/src-examples/ProxyInterfaceConsumer/IPersonT.cs b/src-examples/ProxyInterfaceConsumer/IPersonT.cs index a354f07..6d2a8b4 100644 --- a/src-examples/ProxyInterfaceConsumer/IPersonT.cs +++ b/src-examples/ProxyInterfaceConsumer/IPersonT.cs @@ -1,6 +1,6 @@ namespace ProxyInterfaceConsumer { - [ProxyInterfaceGenerator.Proxy(typeof(ProxyInterfaceConsumer.PersonT<>))] + [Speckle.ProxyGenerator.Proxy(typeof(ProxyInterfaceConsumer.PersonT<>))] public partial interface IPersonT // where T : struct { } } diff --git a/src-examples/ProxyInterfaceConsumer/Program.cs b/src-examples/ProxyInterfaceConsumer/Program.cs index 75fed0c..f4b2bdf 100644 --- a/src-examples/ProxyInterfaceConsumer/Program.cs +++ b/src-examples/ProxyInterfaceConsumer/Program.cs @@ -90,8 +90,8 @@ public sealed class Clazz public string Name { get; set; } = string.Empty; } -[ProxyInterfaceGenerator.Proxy(typeof(Test))] +[Speckle.ProxyGenerator.Proxy(typeof(Test))] public partial interface ITest { } -[ProxyInterfaceGenerator.Proxy(typeof(Clazz))] +[Speckle.ProxyGenerator.Proxy(typeof(Clazz))] public partial interface IClazz { } diff --git a/src-examples/ProxyInterfaceConsumerForAkka/Interfaces/IAddressUid.cs b/src-examples/ProxyInterfaceConsumerForAkka/Interfaces/IAddressUid.cs index 9c98633..d719b5b 100644 --- a/src-examples/ProxyInterfaceConsumerForAkka/Interfaces/IAddressUid.cs +++ b/src-examples/ProxyInterfaceConsumerForAkka/Interfaces/IAddressUid.cs @@ -2,6 +2,6 @@ using Akka.Remote; // namespace ProxyInterfaceConsumerForAkka.Interfaces; <-- no namespace -[ProxyInterfaceGenerator.Proxy(typeof(AddressUid))] +[Speckle.ProxyGenerator.Proxy(typeof(AddressUid))] // ReSharper disable once CheckNamespace public partial interface IAddressUid { } diff --git a/src-examples/ProxyInterfaceConsumerForAkka/Interfaces/ILocalActorRefProvider.cs b/src-examples/ProxyInterfaceConsumerForAkka/Interfaces/ILocalActorRefProvider.cs index 29596c7..506615c 100644 --- a/src-examples/ProxyInterfaceConsumerForAkka/Interfaces/ILocalActorRefProvider.cs +++ b/src-examples/ProxyInterfaceConsumerForAkka/Interfaces/ILocalActorRefProvider.cs @@ -2,6 +2,6 @@ using Akka.Actor; namespace ProxyInterfaceConsumerForAkka.Interfaces { - [ProxyInterfaceGenerator.Proxy(typeof(LocalActorRefProvider))] + [Speckle.ProxyGenerator.Proxy(typeof(LocalActorRefProvider))] public partial interface ILocalActorRefProvider { } } diff --git a/src-examples/ProxyInterfaceConsumerForPnP/Interfaces/IClientContext.cs b/src-examples/ProxyInterfaceConsumerForPnP/Interfaces/IClientContext.cs index f1f6030..cc95bcd 100644 --- a/src-examples/ProxyInterfaceConsumerForPnP/Interfaces/IClientContext.cs +++ b/src-examples/ProxyInterfaceConsumerForPnP/Interfaces/IClientContext.cs @@ -4,7 +4,7 @@ using Microsoft.SharePoint.Client; namespace ProxyInterfaceConsumerForPnP.Interfaces { - [ProxyInterfaceGenerator.Proxy(typeof(ClientContext))] + [Speckle.ProxyGenerator.Proxy(typeof(ClientContext))] public partial interface IClientContext : IClientRuntimeContext { void Load( diff --git a/src-examples/ProxyInterfaceConsumerForPnP/Interfaces/IClientObject.cs b/src-examples/ProxyInterfaceConsumerForPnP/Interfaces/IClientObject.cs index c01e167..b3cf2c8 100644 --- a/src-examples/ProxyInterfaceConsumerForPnP/Interfaces/IClientObject.cs +++ b/src-examples/ProxyInterfaceConsumerForPnP/Interfaces/IClientObject.cs @@ -1,5 +1,5 @@ namespace ProxyInterfaceConsumerForPnP.Interfaces { - [ProxyInterfaceGenerator.Proxy(typeof(Microsoft.SharePoint.Client.ClientObject))] + [Speckle.ProxyGenerator.Proxy(typeof(Microsoft.SharePoint.Client.ClientObject))] public partial interface IClientObject { } } diff --git a/src-examples/ProxyInterfaceConsumerForPnP/Interfaces/IClientRuntimeContext.cs b/src-examples/ProxyInterfaceConsumerForPnP/Interfaces/IClientRuntimeContext.cs index b30a5c6..60115fa 100644 --- a/src-examples/ProxyInterfaceConsumerForPnP/Interfaces/IClientRuntimeContext.cs +++ b/src-examples/ProxyInterfaceConsumerForPnP/Interfaces/IClientRuntimeContext.cs @@ -1,5 +1,5 @@ namespace ProxyInterfaceConsumerForPnP.Interfaces { - [ProxyInterfaceGenerator.Proxy(typeof(Microsoft.SharePoint.Client.ClientRuntimeContext))] + [Speckle.ProxyGenerator.Proxy(typeof(Microsoft.SharePoint.Client.ClientRuntimeContext))] public partial interface IClientRuntimeContext { } } diff --git a/src-examples/ProxyInterfaceConsumerForPnP/Interfaces/IListCollection.cs b/src-examples/ProxyInterfaceConsumerForPnP/Interfaces/IListCollection.cs index 0daf778..ad13290 100644 --- a/src-examples/ProxyInterfaceConsumerForPnP/Interfaces/IListCollection.cs +++ b/src-examples/ProxyInterfaceConsumerForPnP/Interfaces/IListCollection.cs @@ -3,7 +3,7 @@ //namespace ProxyInterfaceConsumerForPnP.Interfaces //{ -// [ProxyInterfaceGenerator.Proxy(typeof(Microsoft.SharePoint.Client.ListCollection))] +// [Speckle.ProxyGenerator.Proxy(typeof(Microsoft.SharePoint.Client.ListCollection))] // public partial interface IProxyListCollection: IClientObject, IEnumerable, IQueryable // { // } diff --git a/src-examples/ProxyInterfaceConsumerForPnP/Interfaces/ISecurableObject.cs b/src-examples/ProxyInterfaceConsumerForPnP/Interfaces/ISecurableObject.cs index ebe042e..06eea32 100644 --- a/src-examples/ProxyInterfaceConsumerForPnP/Interfaces/ISecurableObject.cs +++ b/src-examples/ProxyInterfaceConsumerForPnP/Interfaces/ISecurableObject.cs @@ -1,6 +1,6 @@ namespace ProxyInterfaceConsumerForPnP.Interfaces { - [ProxyInterfaceGenerator.Proxy(typeof(Microsoft.SharePoint.Client.SecurableObject))] + [Speckle.ProxyGenerator.Proxy(typeof(Microsoft.SharePoint.Client.SecurableObject))] public partial interface ISecurableObject : IClientObject { // public virtual void X(); diff --git a/src-examples/ProxyInterfaceConsumerForPnP/Interfaces/IUser.cs b/src-examples/ProxyInterfaceConsumerForPnP/Interfaces/IUser.cs index c6e29db..e41d282 100644 --- a/src-examples/ProxyInterfaceConsumerForPnP/Interfaces/IUser.cs +++ b/src-examples/ProxyInterfaceConsumerForPnP/Interfaces/IUser.cs @@ -1,5 +1,5 @@ namespace ProxyInterfaceConsumerForPnP.Interfaces { - [ProxyInterfaceGenerator.Proxy(typeof(Microsoft.SharePoint.Client.User))] + [Speckle.ProxyGenerator.Proxy(typeof(Microsoft.SharePoint.Client.User))] public partial interface IUser { } } diff --git a/src-examples/ProxyInterfaceConsumerForPnP/Interfaces/IWeb.cs b/src-examples/ProxyInterfaceConsumerForPnP/Interfaces/IWeb.cs index 4cd6c6f..eab6536 100644 --- a/src-examples/ProxyInterfaceConsumerForPnP/Interfaces/IWeb.cs +++ b/src-examples/ProxyInterfaceConsumerForPnP/Interfaces/IWeb.cs @@ -1,5 +1,5 @@ namespace ProxyInterfaceConsumerForPnP.Interfaces { - [ProxyInterfaceGenerator.Proxy(typeof(Microsoft.SharePoint.Client.Web))] + [Speckle.ProxyGenerator.Proxy(typeof(Microsoft.SharePoint.Client.Web))] public partial interface IWeb : ISecurableObject { } } diff --git a/src/Speckle.ProxyGenerator/FileGenerators/ExtraFilesGenerator.cs b/src/Speckle.ProxyGenerator/FileGenerators/ExtraFilesGenerator.cs index c51121b..bc0298a 100644 --- a/src/Speckle.ProxyGenerator/FileGenerators/ExtraFilesGenerator.cs +++ b/src/Speckle.ProxyGenerator/FileGenerators/ExtraFilesGenerator.cs @@ -4,7 +4,7 @@ namespace Speckle.ProxyGenerator.FileGenerators; internal class ExtraFilesGenerator : IFileGenerator { - private const string Name = "ProxyInterfaceGenerator.Extra.g.cs"; + private const string Name = "Speckle.ProxyGenerator.Extra.g.cs"; public FileData GenerateFile() { @@ -21,7 +21,7 @@ internal class ExtraFilesGenerator : IFileGenerator using System; -namespace ProxyInterfaceGenerator +namespace Speckle.ProxyGenerator {{ [AttributeUsage(AttributeTargets.Interface)] internal sealed class ProxyAttribute : Attribute diff --git a/src/Speckle.ProxyGenerator/Speckle.ProxyGenerator.csproj b/src/Speckle.ProxyGenerator/Speckle.ProxyGenerator.csproj index 4f2f837..b40700e 100644 --- a/src/Speckle.ProxyGenerator/Speckle.ProxyGenerator.csproj +++ b/src/Speckle.ProxyGenerator/Speckle.ProxyGenerator.csproj @@ -6,7 +6,6 @@ Latest enable Speckle - Speckle.ProxyGenerator Speckle.ProxyGenerator Speckle.ProxyGenerator diff --git a/src/Speckle.ProxyGenerator/SyntaxReceiver/ProxySyntaxReceiver.cs b/src/Speckle.ProxyGenerator/SyntaxReceiver/ProxySyntaxReceiver.cs index 46d99a3..19fc888 100644 --- a/src/Speckle.ProxyGenerator/SyntaxReceiver/ProxySyntaxReceiver.cs +++ b/src/Speckle.ProxyGenerator/SyntaxReceiver/ProxySyntaxReceiver.cs @@ -11,7 +11,7 @@ internal class ProxySyntaxReceiver : ISyntaxContextReceiver private const string GlobalPrefix = "global::"; private static readonly string[] GenerateProxyAttributes = [ - "ProxyInterfaceGenerator.Proxy", + "Speckle.ProxyGenerator.Proxy", "Proxy" ]; private static readonly string[] Modifiers = ["public", "partial"]; diff --git a/tests/ProxyInterfaceSourceGeneratorTests/AkkaTests.cs b/tests/ProxyInterfaceSourceGeneratorTests/AkkaTests.cs index 33449c4..354fc91 100644 --- a/tests/ProxyInterfaceSourceGeneratorTests/AkkaTests.cs +++ b/tests/ProxyInterfaceSourceGeneratorTests/AkkaTests.cs @@ -34,7 +34,7 @@ public class AkkaTests Text = File.ReadAllText(path), AttributeToAddToInterface = new ExtraAttribute { - Name = "ProxyInterfaceGenerator.Proxy", + Name = "Speckle.ProxyGenerator.Proxy", ArgumentList = "typeof(Akka.Actor.LocalActorRefProvider)" } }; diff --git a/tests/ProxyInterfaceSourceGeneratorTests/InheritedInterfaceTests.cs b/tests/ProxyInterfaceSourceGeneratorTests/InheritedInterfaceTests.cs index e96ac43..e9c19b9 100644 --- a/tests/ProxyInterfaceSourceGeneratorTests/InheritedInterfaceTests.cs +++ b/tests/ProxyInterfaceSourceGeneratorTests/InheritedInterfaceTests.cs @@ -139,7 +139,7 @@ public class InheritedInterfaceTests Text = File.ReadAllText(path), AttributeToAddToInterface = new ExtraAttribute { - Name = "ProxyInterfaceGenerator.Proxy", + Name = "Speckle.ProxyGenerator.Proxy", ArgumentList = $"typeof({Namespace}.{name}), {extendString}" } }; diff --git a/tests/ProxyInterfaceSourceGeneratorTests/PnPTests.cs b/tests/ProxyInterfaceSourceGeneratorTests/PnPTests.cs index 5a2ac78..cdcef4f 100644 --- a/tests/ProxyInterfaceSourceGeneratorTests/PnPTests.cs +++ b/tests/ProxyInterfaceSourceGeneratorTests/PnPTests.cs @@ -44,7 +44,7 @@ public class PnPTests Text = File.ReadAllText(pathClientObject), AttributeToAddToInterface = new ExtraAttribute { - Name = "ProxyInterfaceGenerator.Proxy", + Name = "Speckle.ProxyGenerator.Proxy", ArgumentList = "typeof(Microsoft.SharePoint.Client.ClientObject)" } }; @@ -56,7 +56,7 @@ public class PnPTests Text = File.ReadAllText(pathSec), AttributeToAddToInterface = new ExtraAttribute { - Name = "ProxyInterfaceGenerator.Proxy", + Name = "Speckle.ProxyGenerator.Proxy", ArgumentList = "typeof(SecurableObject)" // Only name, no namespace } }; @@ -68,7 +68,7 @@ public class PnPTests Text = File.ReadAllText(pathWeb), AttributeToAddToInterface = new ExtraAttribute { - Name = "ProxyInterfaceGenerator.Proxy", + Name = "Speckle.ProxyGenerator.Proxy", ArgumentList = "typeof(Web)" // Only name, no namespace } }; @@ -80,7 +80,7 @@ public class PnPTests Text = File.ReadAllText(pathClientRuntimeContext), AttributeToAddToInterface = new ExtraAttribute { - Name = "ProxyInterfaceGenerator.Proxy", + Name = "Speckle.ProxyGenerator.Proxy", ArgumentList = "typeof(Microsoft.SharePoint.Client.ClientRuntimeContext)" } }; @@ -92,7 +92,7 @@ public class PnPTests Text = File.ReadAllText(pathClientContext), AttributeToAddToInterface = new ExtraAttribute { - Name = "ProxyInterfaceGenerator.Proxy", + Name = "Speckle.ProxyGenerator.Proxy", ArgumentList = "typeof(ClientContext)" // Only name, no namespace } }; diff --git a/tests/ProxyInterfaceSourceGeneratorTests/ProxyInterfaceSourceGeneratorTest.cs b/tests/ProxyInterfaceSourceGeneratorTests/ProxyInterfaceSourceGeneratorTest.cs index 4f6dd38..a9aed7c 100644 --- a/tests/ProxyInterfaceSourceGeneratorTests/ProxyInterfaceSourceGeneratorTest.cs +++ b/tests/ProxyInterfaceSourceGeneratorTests/ProxyInterfaceSourceGeneratorTest.cs @@ -36,7 +36,7 @@ public class ProxyInterfaceSourceGeneratorTest Text = File.ReadAllText(path), AttributeToAddToInterface = new ExtraAttribute { - Name = "ProxyInterfaceGenerator.Proxy", + Name = "Speckle.ProxyGenerator.Proxy", ArgumentList = "typeof(ProxyInterfaceSourceGeneratorTests.Source.MyStruct)" } }; @@ -66,7 +66,7 @@ public class ProxyInterfaceSourceGeneratorTest Text = File.ReadAllText(path), AttributeToAddToInterface = new ExtraAttribute { - Name = "ProxyInterfaceGenerator.Proxy", + Name = "Speckle.ProxyGenerator.Proxy", ArgumentList = "typeof(ProxyInterfaceSourceGeneratorTests.Source.Foo)" } }; @@ -100,7 +100,7 @@ public class ProxyInterfaceSourceGeneratorTest Text = File.ReadAllText(path), AttributeToAddToInterface = new ExtraAttribute { - Name = "ProxyInterfaceGenerator.Proxy", + Name = "Speckle.ProxyGenerator.Proxy", ArgumentList = new[] { "typeof(ProxyInterfaceSourceGeneratorTests.Source.Foo2)", @@ -140,7 +140,7 @@ public class ProxyInterfaceSourceGeneratorTest Text = File.ReadAllText(path), AttributeToAddToInterface = new ExtraAttribute { - Name = "ProxyInterfaceGenerator.Proxy", + Name = "Speckle.ProxyGenerator.Proxy", ArgumentList = "typeof(ProxyInterfaceSourceGeneratorTests.Source.Generic<>)" } }; @@ -180,7 +180,7 @@ public class ProxyInterfaceSourceGeneratorTest Text = File.ReadAllText(path), AttributeToAddToInterface = new ExtraAttribute { - Name = "ProxyInterfaceGenerator.Proxy", + Name = "Speckle.ProxyGenerator.Proxy", ArgumentList = "typeof(ProxyInterfaceSourceGeneratorTests.Source.ÜberGeneric<>)" } }; @@ -220,7 +220,7 @@ public class ProxyInterfaceSourceGeneratorTest Text = File.ReadAllText(path), AttributeToAddToInterface = new ExtraAttribute { - Name = "ProxyInterfaceGenerator.Proxy", + Name = "Speckle.ProxyGenerator.Proxy", ArgumentList = "typeof(ProxyInterfaceSourceGeneratorTests.Source.OperatorTest)" } }; @@ -268,7 +268,7 @@ public class ProxyInterfaceSourceGeneratorTest Text = File.ReadAllText(path), AttributeToAddToInterface = new ExtraAttribute { - Name = "ProxyInterfaceGenerator.Proxy", + Name = "Speckle.ProxyGenerator.Proxy", ArgumentList = "typeof(ProxyInterfaceSourceGeneratorTests.Source.NoNamespace)" } }; @@ -308,7 +308,7 @@ public class ProxyInterfaceSourceGeneratorTest Text = File.ReadAllText(path), AttributeToAddToInterface = new ExtraAttribute { - Name = "ProxyInterfaceGenerator.Proxy", + Name = "Speckle.ProxyGenerator.Proxy", ArgumentList = "typeof(ProxyInterfaceSourceGeneratorTests.Source.MixedVisibility)" } }; @@ -335,7 +335,7 @@ public class ProxyInterfaceSourceGeneratorTest public void GenerateFiles_ForSingleClass_Should_GenerateCorrectFiles() { // Arrange - var attributeFilename = "ProxyInterfaceGenerator.Extra.g.cs"; + var attributeFilename = "Speckle.ProxyGenerator.Extra.g.cs"; var interfaceFilename = "ProxyInterfaceSourceGeneratorTests.Source.IPersonExtends.g.cs"; var proxyClassFilename = "ProxyInterfaceSourceGeneratorTests.Source.PersonExtendsProxy.g.cs"; @@ -347,7 +347,7 @@ public class ProxyInterfaceSourceGeneratorTest Text = File.ReadAllText(path), AttributeToAddToInterface = new ExtraAttribute { - Name = "ProxyInterfaceGenerator.Proxy", + Name = "Speckle.ProxyGenerator.Proxy", ArgumentList = new[] { "typeof(ProxyInterfaceSourceGeneratorTests.Source.PersonExtends)", @@ -407,7 +407,7 @@ public class ProxyInterfaceSourceGeneratorTest Text = File.ReadAllText(path), AttributeToAddToInterface = new ExtraAttribute { - Name = "ProxyInterfaceGenerator.Proxy", + Name = "Speckle.ProxyGenerator.Proxy", ArgumentList = new[] { "typeof(ProxyInterfaceSourceGeneratorTests.Source.TestClassInternal)", @@ -452,7 +452,7 @@ public class ProxyInterfaceSourceGeneratorTest public void GenerateFiles_ForTwoClasses_Should_GenerateCorrectFiles() { // Arrange - var attributeFilename = "ProxyInterfaceGenerator.Extra.g.cs"; + var attributeFilename = "Speckle.ProxyGenerator.Extra.g.cs"; var interfaceHumanFilename = "ProxyInterfaceSourceGeneratorTests.Source.IHuman.g.cs"; var proxyClassHumanFilename = "ProxyInterfaceSourceGeneratorTests.Source.HumanProxy.g.cs"; var interfacePersonFilename = "ProxyInterfaceSourceGeneratorTests.Source.IPerson.g.cs"; @@ -465,7 +465,7 @@ public class ProxyInterfaceSourceGeneratorTest Text = File.ReadAllText(pathPerson), AttributeToAddToInterface = new ExtraAttribute { - Name = "ProxyInterfaceGenerator.Proxy", + Name = "Speckle.ProxyGenerator.Proxy", ArgumentList = "typeof(ProxyInterfaceSourceGeneratorTests.Source.Person)" } }; @@ -477,7 +477,7 @@ public class ProxyInterfaceSourceGeneratorTest Text = File.ReadAllText(pathHuman), AttributeToAddToInterface = new ExtraAttribute { - Name = "ProxyInterfaceGenerator.Proxy", + Name = "Speckle.ProxyGenerator.Proxy", ArgumentList = "typeof(ProxyInterfaceSourceGeneratorTests.Source.Human)" } }; @@ -556,7 +556,7 @@ public class ProxyInterfaceSourceGeneratorTest public void GenerateFiles_HttpClient() { // Arrange - var attributeFilename = "ProxyInterfaceGenerator.Extra.g.cs"; + var attributeFilename = "Speckle.ProxyGenerator.Extra.g.cs"; var interfaceIHttpClientFilename = "ProxyInterfaceSourceGeneratorTests.Source.IHttpClient.g.cs"; var proxyClassIHttpClientFilename = "System.Net.Http.HttpClientProxy.g.cs"; @@ -571,7 +571,7 @@ public class ProxyInterfaceSourceGeneratorTest Text = File.ReadAllText(pathIHttpClient), AttributeToAddToInterface = new ExtraAttribute { - Name = "ProxyInterfaceGenerator.Proxy", + Name = "Speckle.ProxyGenerator.Proxy", ArgumentList = "typeof(System.Net.Http.HttpClient)" } }; @@ -583,7 +583,7 @@ public class ProxyInterfaceSourceGeneratorTest Text = File.ReadAllText(pathIHttpMessageInvoker), AttributeToAddToInterface = new ExtraAttribute { - Name = "ProxyInterfaceGenerator.Proxy", + Name = "Speckle.ProxyGenerator.Proxy", ArgumentList = "typeof(System.Net.Http.HttpMessageInvoker)" } }; @@ -671,7 +671,7 @@ public class ProxyInterfaceSourceGeneratorTest const string @class = "ClassInNamespace"; foreach (var x in new[] { 1, 2 }) { - var attributeFilename = "ProxyInterfaceGenerator.Extra.g.cs"; + var attributeFilename = "Speckle.ProxyGenerator.Extra.g.cs"; var interfaceFilename = $"ProxyInterfaceSourceGeneratorTests.Namespace{x}.I{@class}.g.cs"; var proxyClassFilename = @@ -684,7 +684,7 @@ public class ProxyInterfaceSourceGeneratorTest Text = File.ReadAllText(path), AttributeToAddToInterface = new ExtraAttribute { - Name = "ProxyInterfaceGenerator.Proxy", + Name = "Speckle.ProxyGenerator.Proxy", ArgumentList = new[] { $"typeof(ProxyInterfaceSourceGeneratorTests.Namespace{x}.{@class})", diff --git a/tests/ProxyInterfaceSourceGeneratorTests/Source/PnP/ISecurableObject.cs b/tests/ProxyInterfaceSourceGeneratorTests/Source/PnP/ISecurableObject.cs index 2e5f435..caaa403 100644 --- a/tests/ProxyInterfaceSourceGeneratorTests/Source/PnP/ISecurableObject.cs +++ b/tests/ProxyInterfaceSourceGeneratorTests/Source/PnP/ISecurableObject.cs @@ -2,6 +2,6 @@ using Microsoft.SharePoint.Client; namespace ProxyInterfaceSourceGeneratorTests.Source.PnP { - // [ProxyInterfaceGenerator.Proxy(typeof(SecurableObject))] + // [Speckle.ProxyGenerator.Proxy(typeof(SecurableObject))] public partial interface ISecurableObject : IClientObject { } }