public void GetMainWindowVM() { ioc.Register(() => AuthProvider.Default); ioc.Register <GraphManager>(); ioc.Register <MainWindowVM>(); ioc.Register <LocalItemFactory>(); ioc.Register <OneDriveItemFactory>(); var authProvider = ioc.GetSingleton <AuthProvider>(); var graphManager = ioc.GetSingleton <GraphManager>(); var mainWindowVM = ioc.GetSingleton <MainWindowVM>(); Assert.NotNull(authProvider); Assert.NotNull(graphManager); Assert.NotNull(mainWindowVM); }
public void Reset_IsRegister_False() { //Given ioc.Register <MyClass>(); //When ioc.Reset(); //Then bool condition = ioc.IsRegistered <MyClass>(); Assert.False(condition); }