Esempio n. 1
0
        public void SetsParametersUsingUpdateWith()
        {
            var editDurationEvent        = new EditDurationEvent(false, EditDurationEvent.NavigationOrigin.Start);
            var changedEndTimeWithBarrel = editDurationEvent.ToDictionary()["changedEndTimeWithBarrel"];

            editDurationEvent = editDurationEvent.UpdateWith(EditTimeSource.BarrelStopTime);
            var dict = editDurationEvent.ToDictionary();

            changedEndTimeWithBarrel.Should().Be(false.ToString());
            dict["changedEndTimeWithBarrel"].Should().Be(true.ToString());
        }
Esempio n. 2
0
        public void ResultingDictionaryHasAllParameters()
        {
            var editDurationEvent = new EditDurationEvent(false, EditDurationEvent.NavigationOrigin.Start);

            var dict = editDurationEvent.ToDictionary();

            dict.Count.Should().Be(12);
        }