private static void AddModel(Tuple <Type, Type> service) { if (Modelos.ContainsKey(service.Item2)) { throw new DesenvolvimentoIncorretoException($"There are two entity classes with the same Nome {service.Item2.Name}. This is not allowed."); } Modelos.Add(service.Item2, service.Item2); }