enable sql in unittest
register controller to autofac
add edit