Example #1
0
        public void SingletonRecordFinder_ShouldCalculateTotalPopulation()
        {
            var rf    = new SingletonRecordFinder();
            var names = new[] { "Seoul", "Mexico City" };
            var tp    = rf.TotalPopulation(names);

            Assert.That(tp, Is.EqualTo(17500000 + 17400000));
        }
Example #2
0
        public void SingletonTotalPopulationTest()
        {
            // testing on a live database
            var rf    = new SingletonRecordFinder();
            var names = new[] { "Seoul", "Mexico City" };
            var tp    = rf.TotalPopulation(names);

            Assert.That(tp, Is.EqualTo(17500000 + 17400000));
        }