public void Test_KoladaTownWebService_GetOrganisationalUnitById() { string UnitId = "V15E128300201"; var expected = new OrganisationalUnit("Kolada", "V15E128300201", "Elinebergsskolan"); _webService = new KoladaTownWebService(); var actual = _webService.GetOrganisationalUnit(UnitId); Assert.AreEqual(actual.Name, expected.Name); Assert.AreEqual(actual.OrganisationalUnitId, expected.OrganisationalUnitId); }
public void Test_KoladaTownWebService_GetOrganisationalUnitTest() { string UnitId = "V15E108000901"; var expected = new OrganisationalUnitInfo(); expected.Id = 3; expected.Name = "Fridlevstads skola F-6"; expected.OrganisationalUnitId = "V15E108000901"; _webService = new KoladaTownWebService(); var actual = _webService.GetOrganisationalUnit(UnitId); Assert.AreEqual(actual.Name, expected.Name); Assert.AreEqual(actual.OrganisationalUnitId, expected.OrganisationalUnitId); }