Example #1
0
        public void Should_Return_The_Correct_Pledges_After_Start_Date()
        {
            var targetDate      = new DateTimeOffset(2018, 01, 20, 02, 00, 00, TimeSpan.FromHours(-4));
            var expectedResults = new[]
            {
                new PledgeInfo("Maj al-Ragath", "Elden Hollow II"),
                new PledgeInfo("Glirion the Redbeard", "Volenfell"),
                new PledgeInfo("Urgarlag Chief-bane", "Ruins of Mazzatun")
            };

            var repository = new PledgesRepository(Options.Create(_defaultOptions));
            var results    = repository.GetPledgesForDate(targetDate);

            Assert.Equal(expectedResults, results);
        }
Example #2
0
        public void Should_Return_The_Correct_Pledges_On_The_Start_Date()
        {
            var targetDate      = _defaultOptions.StartDate;
            var expectedResults = new[]
            {
                new PledgeInfo("Maj al-Ragath", "Spindleclutch II"),
                new PledgeInfo("Glirion the Redbeard", "Direfrost Keep"),
                new PledgeInfo("Urgarlag Chief-bane", "Ruins of Mazzatun")
            };

            var repository = new PledgesRepository(Options.Create(_defaultOptions));
            var results    = repository.GetPledgesForDate(targetDate);

            Assert.Equal(expectedResults, results);
        }