示例#1
0
        public LandingTrajectoryVerifierTests()
        {
            var dateTimeProviderMock = new Mock <IDateTimeProvider>();

            dateTimeProviderMock
            .SetupSequence(dateTimeProvider => dateTimeProvider.DateTimeUtcNow)
            .Returns(new DateTime(2020, 01, 01))
            .Returns(new DateTime(2020, 01, 02))
            .Returns(new DateTime(2020, 01, 03))
            .Returns(new DateTime(2020, 01, 04))
            .Returns(new DateTime(2020, 01, 05))
            .Returns(new DateTime(2020, 01, 06));

            _sut = LandingTrajectoryVerifier.Initialize(
                LandingPosition.From(new Position(5, 5)),
                LandingPosition.From(new Position(15, 15)),
                dateTimeProviderMock.Object);
        }