Creating solid classes with AutoFac

added by DotNetKicks
2/7/2017 5:27:55 PM

3 Kicks, 461 Views

Let's say we've encapsulated an operation our application has to perform. I tend to write little classes which express the desired behaviour or which delegate to other classes if the need arises. An example of such an operation is the class illustrated here 'UpdateCustomerCommand'. class UpdateCustomerCommand : IRequestHandler { private IDbContext _context; public UpdateCustomerCommand(IDbContext context)...


0 comments