Hello,
I am trying to implement the repository pattern with my tests so that I can save and review all test information at a later point. So far I have a shell of what I need to do but as of now I am stuck on where to go from here. So far I have my interfaces page, repository page done and my actual tests.
Here is what I have so far:
Interfaces page:
internal interface ITestRepository
{
void Save(string Case, DateTime dateTime, bool DidPass, object req, object res);
void Save(string artifact);
}
And here is my repo page.
Now I know those two pages have to communicate with each other and the actual tests to work. But I am stuck on how to go about that and tutorials online are really vague and don't get deep enough for me to fully understand.
public class FileRepository : ITestRepository
{
public void Save(string Case, DateTime dateTime, bool DidPass, object req, object resp)
{
}
public void Save(string artifact)
{
}
}