コード例 #1
0
        public void MarksTheUserAsNotNewWhenUsingTheAppForTheFirstTimeAfterSixtyDays()
        {
            var now = DateTimeOffset.Now;

            timeService.CurrentDateTime.Returns(now);
            onboardingStorage.GetLastOpened().Returns(now.AddDays(-60).ToString());

            mvvmCrossFoundation.RevokeNewUserIfNeeded();

            onboardingStorage.Received().SetLastOpened(now);
            onboardingStorage.Received().SetIsNewUser(false);
        }