public void AddAutomation(IAutomation automation) { _automations.AddUnique(automation.Id, automation); _automationService.AddAutomation(automation); }