public void Exists_Test()
        {
            var municipality = new Municipality
            {
                MunicipalityId = "TEST1",
                Name           = "Municipality name",
                DistrictName   = "District name"
            };

            var frame = new PopulationFrame
            {
                Count          = 1,
                MunicipalityId = municipality.MunicipalityId,
                Year           = 2000
            };

            var populationFrameDataStorage = MemoryDataStorage.FromData(frame);
            var repository = new PopulationFrameRepository(populationFrameDataStorage);
            var result     = repository.Exists(new QueryPopulationFrameByMunicipalityCode
            {
                Code = municipality.MunicipalityId
            });

            Assert.IsTrue(result);
        }
Example #2
0
        public void Count_Test()
        {
            var populationFrame = new PopulationFrame
            {
                Count = 11
            };

            Assert.AreEqual(11, populationFrame.Count);
        }
Example #3
0
        public void Year_Test()
        {
            var populationFrame = new PopulationFrame
            {
                Year = 2000
            };

            Assert.AreEqual(2000, populationFrame.Year);
        }