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