System.InvalidOperationException: Unable to resolve service for type
You're registering UnitRepository as IUnitRepository, but requesting your IoC resolve UnitRepository. It doesn't have a registration for that, so it's failing.
Try making UnitService take an IUnitRepository instead of a UnitRepository, that should resolve things (pardon the pun).