public void TwoTimeEntriesAreRivalsIfBothOfThemHaveTheDurationSetToNull()
        {
            var a = createTimeEntry(id: 1, duration: null);
            var b = createTimeEntry(id: 2, duration: null);

            var areRivals = resolver.AreRivals(a).Compile()(b);

            areRivals.Should().BeTrue();
        }
示例#2
0
        public void TwoTimeEntriesAreRivalsIfBothOfThemHaveTheDurationSetToNull()
        {
            var a = TimeEntry.Clean(new MockTimeEntry {
                Id = 1, Duration = null
            });
            var b = TimeEntry.Clean(new MockTimeEntry {
                Id = 2, Duration = null
            });

            var areRivals = resolver.AreRivals(a).Compile()(b);

            areRivals.Should().BeTrue();
        }
        public void TwoTimeEntriesAreRivalsIfBothOfThemHaveTheStopTimeSetToNull()
        {
            var a = TimeEntry.Clean(new Ultrawave.Models.TimeEntry {
                Id = 1, Stop = null
            });
            var b = TimeEntry.Clean(new Ultrawave.Models.TimeEntry {
                Id = 2, Stop = null
            });

            var areRivals = resolver.AreRivals(a).Compile()(b);

            areRivals.Should().BeTrue();
        }