0
votes
1answer
62 views

how should you mock / unit test this method / class

I have the below code: public interface IRepositoryService { /// <summary> /// This will add conditions like Published = true, Deleted = false and PublisehdDate smaller than NOW /// ...
5
votes
0answers
157 views

Doubts about the quality of an API designed for use with minimal effort

This is going to be long, and I do hope it is going to make some kind of sense; I apologize if it doesn't. I'll try to provide exactly the amount of context that is necessary to understand the ...
0
votes
0answers
61 views

Testing WordPress with Mockery and a Facade

I've put together this gist with an idea about testing WordPress themes and plugins with Mockery and a WordPress facade object. I've love some feedback on the approach, please. WordPressFacade ...