public void RunLambdaStartupShouldCallConfigureLoggingOnStartup(
            ServiceCollection serviceCollection,
            [Substitute] ILambdaStartup startup
            )
        {
            serviceCollection.AddSingleton(startup);

            var provider = serviceCollection.BuildServiceProvider();

            TestLambdaHostBuilder.RunLambdaStartup(provider, serviceCollection);

            startup.Received().ConfigureLogging(Arg.Any <ILoggingBuilder>());
        }
        public void RunLambdaStartupShouldAddServiceCollection(
            ServiceCollection serviceCollection,
            [Substitute] ILambdaStartup startup
            )
        {
            serviceCollection.AddSingleton(startup);

            var provider = serviceCollection.BuildServiceProvider();

            TestLambdaHostBuilder.RunLambdaStartup(provider, serviceCollection);

            startup.Received().ConfigureServices(Arg.Is(serviceCollection));
        }