Skip to content

Commit

Permalink
Compile time test for 270b9a0
Browse files Browse the repository at this point in the history
  • Loading branch information
niklasstich committed Oct 8, 2024
1 parent ba980b0 commit 5f6a01e
Show file tree
Hide file tree
Showing 2 changed files with 53 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
using Moyou.Aspects.Factory;

namespace Moyou.CompileTimeTest.Factory.FactoryAttributeTests;

[Factory]
[FactoryMember(TargetType = typeof(ClassE))]
public class FactoryE
{

}

public interface InterfaceE
{

}

public class ClassE : InterfaceE
{
public ClassE()
{

}

[FactoryConstructor]
public ClassE(int foobar, string barbaz, object bobo)
{

}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
using Moyou.Aspects.Factory;
namespace Moyou.CompileTimeTest.Factory.FactoryAttributeTests;
[Factory]
[FactoryMember(TargetType = typeof(ClassE))]
public class FactoryE
{
public global::Moyou.CompileTimeTest.Factory.FactoryAttributeTests.InterfaceE CreatenterfaceE(global::System.Int32 foobar, global::System.String barbaz, global::System.Object bobo)
{
return new global::Moyou.CompileTimeTest.Factory.FactoryAttributeTests.ClassE((global::System.Int32)foobar, (global::System.String)barbaz, bobo);
}
}
public interface InterfaceE
{
}
public class ClassE : InterfaceE
{
public ClassE()
{
}
[FactoryConstructor]
public ClassE(int foobar, string barbaz, object bobo)
{
}
}

0 comments on commit 5f6a01e

Please sign in to comment.