public void DoesNotFailIfRecipeNotSet()
            {
                // Given
                Configurator configurator = GetConfigurator();

                // When
                configurator.AddRecipePackageAndSetTheme();
            }
            public void DoesNotFailIfRecipeNotFound()
            {
                // Given
                Configurator configurator = GetConfigurator();

                configurator.RecipeName = "Foo";

                // When
                configurator.AddRecipePackageAndSetTheme();
            }
            public void SetsDefaultTheme()
            {
                // Given
                Configurator configurator = GetConfigurator();

                configurator.RecipeName = nameof(KnownRecipe.Blog);

                // When
                configurator.AddRecipePackageAndSetTheme();

                // Then
                configurator.Theme.ShouldBe(KnownRecipe.Blog.DefaultTheme);
            }
            public void DoesNotSetThemeIfThemeAlreadySet()
            {
                // Given
                Configurator configurator = GetConfigurator();

                configurator.RecipeName = nameof(KnownRecipe.Blog);
                configurator.Theme      = "Foo";

                // When
                configurator.AddRecipePackageAndSetTheme();

                // Then
                configurator.Theme.ShouldBe("Foo");
            }
            public void DoesNotAddRecipePackageIfAlreadyAdded()
            {
                // Given
                Configurator configurator = GetConfigurator();

                configurator.RecipeName = nameof(KnownRecipe.Blog);
                configurator.PackageInstaller.AddPackage(KnownRecipe.Blog.PackageId);

                // When
                configurator.AddRecipePackageAndSetTheme();

                // Then
                configurator.PackageInstaller.PackageIds.Count.ShouldBe(1);
            }
            public void AddsRecipePackage()
            {
                // Given
                Configurator configurator = GetConfigurator();

                configurator.RecipeName = nameof(KnownRecipe.Blog);
                configurator.PackageInstaller.AddPackage("Foobar");

                // When
                configurator.AddRecipePackageAndSetTheme();

                // Then
                configurator.PackageInstaller.PackageIds.Count.ShouldBe(2);
            }