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