public void TryDistributeTotalInput_ClientHourRegistrationHoursAreUpdatedAsExpected()
        {
            // Arrange
            new DispatcherFrame();
            var headerClient = new ForecastRegistrationDateColumn(new DateTime(2013, 1, 1))
            {
                ForecastTypeRegistration = new ForecastTypeRegistration(ForecastTestData.ProjectHoursOnlyForecastType, null)
            };

            var headerOpen = new ForecastRegistrationDateColumn(new DateTime(2013, 1, 2))
            {
                ForecastTypeRegistration = new ForecastTypeRegistration(ForecastTestData.DedicatedAndProjectHoursForcastType, null)
            };

            var sut = new ProjectRegistration {
                Registrations = new ObservableCollection <ProjectHourRegistration>()
            };

            AddClientHourRegistration(sut, headerClient, 7.5m);
            AddClientHourRegistration(sut, headerOpen, 4);

            // Act
            sut.TryDistributeTotalInput("14");

            // Assert
            Assert.That(sut.Registrations.Single(x => x.SelectedPresencetypeSupportsProjectHoursOnly()).Hours, Is.EqualTo(7));
            Assert.That(sut.Registrations.Single(x => x.SelectedPresencetypeSupportsDedicatedHours).Hours, Is.EqualTo(7));
        }
        public void TryDistributeTotalInput_InputStringIsNotInt_AbortsUpdate()
        {
            // Arrange
            var sut = new ProjectRegistration {
                Registrations = new ObservableCollection <ProjectHourRegistration>()
            };

            // Act
            sut.TryDistributeTotalInput("abc");

            // Assert
        }