Пример #1
0
 public void GetIndicatorByIdTest()
 {
     IndicatorDAO target = new IndicatorDAO(connnetion);
     int providerId = 1;
     int indicatorId = 1;
     Indicator expected = new Indicator
     {
         ID = 1,
         Name = "Densidade populacional (N.º/ km²) por Local de residência; Anual",
         NameAbbr = "Densidade populacional (N.º/ km²)",
         Provider = new Provider
         {
             ID = 1,
             Name = "Instituto Nacional de Estatística",
             NameAbbr = "INE",
             ServiceURL = "http://localhost:42136/INEStatisticsProvider.svc",
             URL = "http://www.ine.pt"
         },
         SourceID = "0000009",
         SubThemeID = 1,
         ThemeID = 1
     };
     Indicator actual;
     actual = target.GetIndicatorById(providerId, indicatorId);
     Assert.AreEqual(expected, actual);
 }