private static void RegistrationRoot() { var builder = new ContainerBuilder(); //Services builder.RegisterType <WeatherService>().As <IWeatherService>().SingleInstance(); builder.RegisterType <NewsService>().As <INewsService>().SingleInstance(); builder.RegisterType <MirrorStateService>().As <IMirrorStateServices>().SingleInstance(); builder.Register <NavigateService>( context => { var navigationService = new NavigateService(); navigationService.RegistratePage <DefaultUserViewModel>(typeof(DefaultUserPage)); return(navigationService); }).As <IDeliveryBoundary>().SingleInstance(); //UseCase DefaultUser builder.RegisterType <DefaultUserUseCaseInteractor>().As <IDefaultUserUseCase>().SingleInstance(); builder.RegisterType <DefaultUserViewModel>() .As <IDefaultUserPresenter>() .As <INoiseActionPresenter>() .As <DefaultUserViewModel>() .SingleInstance(); builder.RegisterType <NoiseDetectionService>().As <INoiseDetectionService>().SingleInstance(); builder.RegisterType <TempNoiseDetectedInteractor>().As <INoiseDetectedUseCase>().SingleInstance(); builder.RegisterType <StartupInteractor>().As <IStartupUseCase>().SingleInstance(); builder.RegisterType <HandshakeService>().As <IHandshakeService>().SingleInstance(); builder.RegisterType <AppSettingsService>().As <IAppSettingsService>().SingleInstance(); builder.RegisterType <SetUpCoreInteractor>().As <IHandShakeUseCase>().SingleInstance(); builder.RegisterType <HandshakeInteractor>().As <IHandshakeUseCase>().SingleInstance(); container = builder.Build(); }