Domain-Driven Refactoring: Encapsulating data

Domain-Driven Refactoring: Encapsulating data

In the last post, we looked at using a few common refactorings to encapsulate operations and push behavior down into our domain model. While this works to encapsulate operations, we haven’t yet encapsulated our data. Take a look at the current Offer model:...
Domain-Driven Refactoring: Encapsulating data

Domain-driven refactoring: Long methods

In the last post, I walked through the main, immediate code smell we saw of a long method, and I would classify this method as long: public class AssignOfferHandler : IRequestHandler<AssignOfferRequest> { private readonly AppDbContext _appDbContext; private...
Domain-Driven Refactoring: Encapsulating data

Local development with Azure Service Bus

For teams new to Azure Service Bus, one of the first questions you have to answer is “how do I develop against this?” And it turns out the answer isn’t that straightforward – because it’s currently impossible to run Azure Service Bus...