I have below two classes in two projects and each class needs to call other class method. But cannot add reference to each other because it is creating a circular dependency.
I know that i must use a interface to resolve the issue but i am not able comeup with answer. Please let me know how to implement & resolve this.
project Test2
namespace Test2
{
public class ClassTest2
{
public string GetClassTest2()
{
return "classTest2";
}
}
}
Project Test1
namespace Test1
{
public class ClassTest1
{
public string GetClassTest1()
{
return "classTest1";
}
}
}