public void WhenNameIsProvided()
        {
            var stuffParameterBuilder = new StuffParameterFactory(new IStuffView[0], new FakeProfileWrapper());
            var buildParameters = stuffParameterBuilder.BuildParameters("", "", "The Dark");

            Assert.That(buildParameters.Name, Is.EqualTo("The Dark"));
        }
        public void WhenNoViewAndCategoriesAreProvidedCategoryIsReturned()
        {
            var stuffParameterBuilder = new StuffParameterFactory(new IStuffView[] { new AtHomeItemsView() }, new FakeProfileWrapper());
            var buildParameters = stuffParameterBuilder.BuildParameters("", "DVDFilm", "");

            Assert.That(buildParameters.Categories.Any(), Is.True);
        }
        public void WhenValidViewAndCategoryIsProvidedCategoryIsReturned()
        {
            var stuffParameterBuilder = new StuffParameterFactory(new IStuffView[] { new AtHomeItemsView() }, new FakeProfileWrapper());
            var buildParameters = stuffParameterBuilder.BuildParameters("AtHome", "DVDFilm", "");

            Assert.That(buildParameters.Categories.First(), Is.EqualTo("DVDFilm"));
        }
        public void WhenValidViewIsProvidedWithDifferentVaseViewIsReturned()
        {
            var stuffParameterBuilder = new StuffParameterFactory(new IStuffView[] { new AtHomeItemsView() }, new FakeProfileWrapper());
            var buildParameters = stuffParameterBuilder.BuildParameters("atHome", "", "");

            Assert.That(buildParameters.ViewId, Is.EqualTo("AtHome"));
        }
        public void WhenCommaSeperatedCategoriesAreProvidedCategoriesAreReturned()
        {
            var stuffParameterBuilder = new StuffParameterFactory(new IStuffView[0], new FakeProfileWrapper());
            var buildParameters = stuffParameterBuilder.BuildParameters("DVDFilm,BluRay", "", "");

            Assert.That(buildParameters.Categories.ElementAt(1), Is.EqualTo("BluRay"));
        }
        public void WhenCategoryIsNullCategoryIsEmptyList()
        {
            var subject = new StuffParameterFactory(new IStuffView[0], new FakeProfileWrapper());
            var buildParameters = subject.BuildParameters(null, "", "");

            Assert.That(buildParameters.Categories.Any(), Is.False, "Items returned");
        }