Ejemplo n.º 1
0
        public void Register(IServiceCollection services)
        {
            var sharedDependency = new SharedDependency();

            sharedDependency.Register(services);
            var businessLogicDependency = new BusinessLogicDependency();

            businessLogicDependency.Register(services);
            services.AddTransient <IMessagesBusinessLogic, MessagesBusinessLogic>();
            services.AddTransient <IMessageValidator, MessageValidator>();
            services.AddTransient <IMessagesService, MessagesService>();
        }