예제 #1
0
        public void ReminderSetUp()
        {
            var seedDate = Div.GenerateRandomDate(1950);
            var testCard = new SaveTheDateCardBuilder(GetTestWedding(seedDate), options =>
            {
                options.SetReminder = true;
            });

            // DI context so we can read if reminder was saved to db
        }
예제 #2
0
        public void ClassConstructed()
        {
            var seedDate = Div.GenerateRandomDate(1950);
            var testCard = new SaveTheDateCardBuilder(GetTestWedding(seedDate));

            GetTestWedding(seedDate);

            Assert.Equal($"Marrier1 and Marrier2 says save the date " +
                         $"{seedDate.AddDays(DaysUntilWedding).ToShortDateString()} osv. " +
                         $"Respond before {seedDate.AddDays(DaysUntilFinalResponse).ToShortDateString()}. Hadefint",
                         testCard.Message);

            new DispatchBuilder(testCard).Deliver();
        }