public void one_day_interval_for_items_without_correct_review()
        {
            var item     = new ReviewItemBuilder().NeverReviewed().Build();
            var strategy = new SuperMemo2ReviewStrategy(_clock);

            var nextReview = strategy.NextReview(item);

            Assert.That(nextReview, Is.EqualTo(_clock.Now()));
        }
Ejemplo n.º 2
0
    public void Should_be_able_to_register_new_customer()
    {
        Clock.Adjust(new DateTime(2020, 01, 01));
        var fullName     = new FullName(JohnSmith.FirstName, JohnSmith.LastName);
        var nationalCode = new NationalCode(JohnSmith.NationalCode);

        var customer = new Customer(fullName, nationalCode, Clock);

        customer.Id.Should().NotBeEmpty();
        customer.FullName.Should().Be(fullName);
        customer.NationalCode.Should().Be(nationalCode);
        customer.CreatedAt.Should().Be(Clock.Now());
    }