Example #1
0
 public void Register_NotImplementClass_ThrowExeption()
 {
     // Arrange
     ioc.Setup(i => i.Register <IBase, Sub>()).Throws <IOCException>();
     // Act
     Labo.Register <IBase, Sub>();
 }
Example #2
0
 public void Register_NotInterfaceClass_ThrowExeption()
 {
     // Arrange
     ioc.Setup(i => i.Register <Base, SubBase>()).Throws <IOCException>();
     // Assert
     Labo.Register <Base, SubBase>();
 }
Example #3
0
 public void Register_IBaseWithBase_Success()
 {
     // Act
     Labo.Register <IBase, Base>();
     // Assert
     ioc.Verify(i => i.Register <IBase, Base>());
 }
Example #4
0
 void RegisterImplement()
 {
     Labo.Register <ICountersService, CountersService>();
     Labo.Register <IPostsService, PostService>();
 }
Example #5
0
 void SetInterfaceImplement()
 {
     Labo.RegisterSingleton <ICounterRepository>(new CounterRepository());
     Labo.Register <ICounterService, CounterService>();
 }
Example #6
0
 private void RegisterImplement()
 {
     Labo.Register <IMainProcess, SynchronizationMainProcess>();
     Labo.Register <IFormatKeyValuePairsService, FormatKeyValuePairsService>();
     Labo.Register <FormacchanLibrary.Services.IFormatKeyValuePairsService, FormacchanLibrary.Services.FormatKeyValuePairsService>();
 }