示例#1
0
 /// <summary>
 /// Construtor padrão
 /// </summary>
 /// <param name="logger">Logger</param>
 /// <param name="enumHelpers">Helpers para enum</param>
 public MessageTemplate(
     ILogger <MessageTemplate> logger,
     IEnumHelpers enumHelpers)
 {
     _logger      = logger;
     _enumHelpers = enumHelpers;
 }
示例#2
0
        /// <summary>
        /// Construtor padrão
        /// </summary>
        public EnumHelpersTests()
        {
            ServiceCollection services = new ServiceCollection();

            services.AddSingleton <IEnumHelpers, EnumHelpers>(impl =>
            {
                return(new EnumHelpers(new Mocks.MockLogger <EnumHelpers>()));
            });

            _enumHelpers = services.BuildServiceProvider().GetService <IEnumHelpers>();
        }