public void VerifyThatTheFrozenDateIsAsExpected()
        {
            var viewmodel = new ModelSelectionSessionRowViewModel(this.siteDirectory, this.session.Object);
            var models    = viewmodel.EngineeringModelSetupRowViewModels;
            var engineeringModelSetupRowViewModel = models.Single(x => x.Thing == this.model2);

            var frozenSelectionIterationSetupRowViewModel = engineeringModelSetupRowViewModel.IterationSetupRowViewModels.Single(x => x.Thing == this.iteration21);

            Assert.AreEqual(this.frozenOnDate, frozenSelectionIterationSetupRowViewModel.FrozenOnDate);

            var activeSelectionIterationSetupRowViewModel = engineeringModelSetupRowViewModel.IterationSetupRowViewModels.Single(x => x.Thing == this.iteration22);

            Assert.AreEqual("Active", activeSelectionIterationSetupRowViewModel.FrozenOnDate);
        }
        public void VerifyThatPropertiesAreSetAndAdded()
        {
            var viewmodel = new ModelSelectionSessionRowViewModel(this.siteDirectory, this.session.Object);

            Assert.AreEqual(this.siteDirectory.Name + $" ({this.siteDirectory.IDalUri})", viewmodel.Name.Insert(13, this.session.Name));

            var models = viewmodel.EngineeringModelSetupRowViewModels;

            Assert.AreEqual(2, models.Count);

            var model1 = models.First();

            Assert.AreEqual(this.model1.Name, model1.Name);

            Assert.AreEqual(1, model1.IterationSetupRowViewModels.Count);

            var modelSelectionIterationSetupRowViewModel = model1.IterationSetupRowViewModels.First();

            Assert.IsTrue(modelSelectionIterationSetupRowViewModel.Name.Contains(this.iteration11.IterationNumber.ToString(CultureInfo.InvariantCulture)));
            Assert.AreEqual("Active", modelSelectionIterationSetupRowViewModel.FrozenOnDate);
            Assert.AreEqual(this.domain, modelSelectionIterationSetupRowViewModel.SelectedDomain);
            Assert.AreEqual(1, modelSelectionIterationSetupRowViewModel.DomainOfExpertises.Count);
        }