コード例 #1
0
 public void OnTimeSetUp()
 {
     ContaineResolver.Register <IEmailMessageConfiguration, EmailMessageConfiguration>();
     ContaineResolver.Register <ISmtpConfiguration, SmtpConfiguration>();
     ContaineResolver.Register <ISmtpProvider, SmtpProvider>();
     ContaineResolver.Register <IEmailProvider, EmailProvider>();
 }
コード例 #2
0
 public void RegisterAllAssemblies()
 {
     ContaineResolver.Register <IEmailSenderManager, EmailSenderManager>();
     ContaineResolver.Register <IEmailHandler, EmailHandler>();
     ContaineResolver.Register <ISmtpConfiguration, SmtpConfiguration>();
     ContaineResolver.Register <ISmtpProvider, SmtpProvider>();
     ContaineResolver.Register <IEmailMessageConfiguration, EmailMessageConfiguration>();
     ContaineResolver.Register <IEmailProvider, EmailProvider>();
 }
コード例 #3
0
 public void OnTimeSetUp()
 {
     ContaineResolver.Register <IService1, Service1>();
     ContaineResolver.Register <IService2>(() => new Service2());
 }
コード例 #4
0
ファイル: ProgramTest.cs プロジェクト: adimoraret/EmailSender
 public void OneTimeSetUp()
 {
     _emailSenderManager = new Mock <IEmailSenderManager>(MockBehavior.Strict);
     ContaineResolver.Register(() => _emailSenderManager.Object);
 }
コード例 #5
0
 public void TestFixtureSetUp()
 {
     _emailHandler = new Mock <IEmailHandler>(MockBehavior.Strict);
     ContaineResolver.Register(() => _emailHandler.Object);
 }