public static IServiceCollection AddTextFileEmployeeCatalog(this IServiceCollection services, FileConfiguration fileConfiguration) => services .AddSingleton(new TextFileEmployeeCatalog(fileConfiguration)) .AddSingleton <IEmployeeCatalog>(sp => sp.GetService <TextFileEmployeeCatalog>());