public void GetSectionByEmail()
        {
            Mock<ISectionRepository> mock = new Mock<ISectionRepository>();
            mock.Setup(a => a.Sections).Returns(new Section[]
            {
                new Section { id = 1, short_name = "IMZ1" , name = "Sekcja Zgrzewania Szyn Skarżysko Kamienna", email = "*****@*****.**" },
                new Section { id = 2, short_name = "IMZ2", name = "Sekcja Zgrzewania Szyn Kędzierzyn Koźle", email = "*****@*****.**"  },
                new Section { id = 3, short_name = "IMZ3", name = "Sekcja Zgrzewania Szyn Bydgoszcz", email = "*****@*****.**"  },
                new Section { id = 4, short_name = "IMR1", name = "Sekcja Robót Inżynieryjnych Skarżysko", email = "*****@*****.**"  },
                new Section { id = 5, short_name = "IMR2", name = "Sekcja Robót Inżynieryjnych Warszawa", email = "*****@*****.**"  }
            }.AsQueryable());

            SectionController ctrl = new SectionController(mock.Object);
            Section section = ctrl.GetSectionByEmail("*****@*****.**");
            Assert.IsNotNull(section);
            Assert.AreEqual(section.short_name, "IMR1");

            section = ctrl.GetSectionByEmail("*****@*****.**");
            Assert.IsNull(section);
        }