public void AddXXTest()
        {
            //Arrange

            IService1 service = new Service1();

            //Act

            IList <ClassName> fangstliste = service.GetXXes();

            int count = fangstliste.Count;

            service.AddXX(new ClassName()
            {
                Navn = "Navntest", X1 = "Test", X2 = 44, X3 = "Test", X4 = 66
            });

            fangstliste = service.GetXXes();

            int newCount = fangstliste.Count;

            //Assert

            Assert.AreEqual(count + 1, newCount);
        }
        public void UpdateXXTest()
        {
            //Arrange
            IService1 update = new Service1();

            //Act
            ClassName x1 = new ClassName()
            {
                Navn = "KampBænk2", X1 = "Materialer", X2 = 3, X3 = "498", X4 = 33
            };

            update.AddXX(x1);
            x1.Navn = "testUpdate";
            ClassName updatedXX = update.UpdateXX(x1.Id.ToString(), x1);


            //Assert
            Assert.AreEqual("testUpdate", updatedXX.Navn);
        }