public void SelectionResultTest()
        {
            // Arrange
            var selectRepo     = new FakeSelectionRepository();
            var instrumentRepo = new FakeInstrumentRepository();

            AddTestSelections(selectRepo);
            var selectController = new SelectController(selectRepo, instrumentRepo);
            // Act
            var result            = (ViewResult)selectController.SelectionResult();
            var instrumentResults = (List <Instrument>)result.Model;

            // Assert (description text of resulting instruments between two
            // totally different instrument selections should not be equal)
            Assert.NotEqual(instrumentResults[0].DescriptionText, instrumentResults[1].DescriptionText);
        }
        public void SelectionTest()
        {
            // Arrange
            var selectRepo       = new FakeSelectionRepository();
            var instrumentRepo   = new FakeInstrumentRepository();
            var selectController = new SelectController(selectRepo, instrumentRepo);
            var testSelect       = new Selection()
            {
                PreferredSize      = "2",
                PreferredRange     = "3",
                PreferredTone      = "3",
                PreferredTechnical = "2"
            };

            // Act
            selectController.Selection(testSelect);
            // Assert
            Assert.Equal("2", selectRepo.Selections[selectRepo.Selections.Count - 1].PreferredSize);
            Assert.Equal("3", selectRepo.Selections[selectRepo.Selections.Count - 1].PreferredTone);
        }