static void Main(string[] args) { CustomService custom = new CustomService(new CreatorSqlRepository()); custom.DoSomething(); #region //CustomService custom = // new CustomService(RepositoryEnum.SqlRepository); //custom.DoSomething(); #endregion Console.ReadLine(); }