Ejemplo n.º 1
0
        public static void AddMocks(this IServiceCollection services)
        {
            var shell = new MockShell();

            services.AddSingleton <IShellServer>(shell);
            services.AddSingleton <IShellRouter>(new MockShellRouter(shell));
            services.AddSingleton <IOptions <KernelContext> >(new MockKernelOptions());
        }
Ejemplo n.º 2
0
        public static void AddMocks(this IServiceCollection services)
        {
            var shell = new MockShell();

            services.AddSingleton <IShellServer>(shell);
            services.AddSingleton <IShellRouter>(new MockShellRouter(shell));
            services.AddSingleton <ICommsRouter>(new MockCommsRouter(shell));
            services.AddSingleton <IOptions <KernelContext> >(new MockKernelOptions());
            services.AddSingleton <INugetPackages>(new MockNugetPackages());
            services.AddSingleton <IAzureFactory>(new MocksAzureFactory());
        }