Skip to main content

Timeline for Should I mock a Domain Service?

Current License: CC BY-SA 3.0

6 events
when toggle format what by license comment
Jan 27, 2018 at 9:47 vote accept w0051977
Jan 25, 2018 at 14:57 history edited VoiceOfUnreason CC BY-SA 3.0
added 295 characters in body
Jan 25, 2018 at 14:02 comment added w0051977 Can you answer the question in my comment above before I mark your answer? Thanks.
Jan 25, 2018 at 8:29 comment added w0051977 IOfferCalculator.CalculateValue is a simple method in this case - it does not connect to a database and it does not call any other methods. Therefore I think your "memory tax calculator service, then the test double doesn't provide nearly as much marginal benefit as a test double that stands in for a domain service that needs to talk to a database" applies i.e. a mock/stub is not needed. Do you agree? +1 for the hyperlink - it was very helpful.
Jan 25, 2018 at 5:13 comment added candied_orange Bikewash? Is this a typo or is my vocabulary about to expand?
Jan 25, 2018 at 4:45 history answered VoiceOfUnreason CC BY-SA 3.0