You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Recently I started to test my solution with mocks and i got the following issue.
I'm using the "Repository" parttern, but i can not create a mock to it.
Example:
private IRepository myClassRepository;
public void Test()
{
List arrMyClass = LoadArrayMyClassWithObjects();
Hi guys,
Recently I started to test my solution with mocks and i got the following issue.
I'm using the "Repository" parttern, but i can not create a mock to it.
Example:
private IRepository myClassRepository;
public void Test()
{
List arrMyClass = LoadArrayMyClassWithObjects();
}
What is the correct code to write the method above? In my test, it's returning a null error.
Thanks.
The text was updated successfully, but these errors were encountered: