Esempio n. 1
0
        public void TestGetStructureAddress()
        {
            // arrange
            var statementService = new AddressClient();

            // act
            var structureAddress = statementService.GetStructureAddress(new Guid("CDDF07A5-9617-4911-A6A4-122032151907"));

            // assert
            Assert.IsNotNull(structureAddress);
            Assert.AreEqual(structureAddress.Subject, "Белгородская обл");
            Assert.AreEqual(structureAddress.Area, "Красногвардейский р-н");
            Assert.AreEqual(structureAddress.Town, "Палатово с");
            Assert.AreEqual(structureAddress.Code, "3101200005702");
            Assert.AreEqual(structureAddress.OkatoRn, "14242000000");
            Assert.IsNull(structureAddress.City);
            Assert.IsNull(structureAddress.Street);
        }