public void GetSectionsByPostalCode()
        {
            Mock<ISectionRepository> mock = new Mock<ISectionRepository>();
            mock.Setup(a => a.Sections).Returns(new Section[]
            {
                new Section { id = 1, short_name = "IMZ1" , name = "SEKCJA ZMECHANIZOWANEJ WYMIANY NAWIERZCHNI", postal_code = "31-987" },
                new Section { id = 2, short_name = "IMN", name = "Sekcja Zgrzewania Szyn Kędzierzyn Koźle", postal_code = "47-224" },
                new Section { id = 3, short_name = "IMP", name = "SEKCJA ZMECHANIZOWANEJ WYMIANY PODTORZA", postal_code = "31-987" },
                new Section { id = 4, short_name = "IMR1", name = "Sekcja Robót Inżynieryjnych Skarżysko", postal_code = "26-110" },
                new Section { id = 5, short_name = "IMR2", name = "Sekcja Robót Inżynieryjnych Warszawa", postal_code = "03-829" }
            }.AsQueryable());

            SectionController ctrl = new SectionController(mock.Object);
            object[] temp = ctrl.GetSectionsByPostalCode("31-987");
            Assert.AreEqual(temp.Length, 2);
            Assert.AreEqual(((Section)temp[1]).id, 3);

            object[] temp2 = ctrl.GetSectionsByPostalCode("26-110");
            Assert.AreEqual(temp2.Length, 1);
            Assert.AreEqual(((Section)temp2[0]).id, 4);

            object[] temp3 = ctrl.GetSectionsByPostalCode("55-555");
            Assert.AreEqual(temp3.Length, 0);
        }