public EventConsumer() { var container = IoC.GetIoC().Container; outMailRepository = container.Resolve <IOutMailRepository>(); companyAccountRepository = container.Resolve <ICompanyAccountRepository>(); }
public MailController( IUserRepository userRepository, IUserAuthenticationRepository userAuthenticationRepository, ICompanyAccountRepository companyAccountRepository, IOutMailRepository outMailRepository, IInMailRepository inMailRepository, IBus bus) { this.userRepository = userRepository; this.userAuthenticationRepository = userAuthenticationRepository; this.companyAccountRepository = companyAccountRepository; this.outMailRepository = outMailRepository; this.inMailRepository = inMailRepository; this.bus = bus; }