public void TestUpdateSubject() { //prepare SubjectModel dut = new SubjectModel(crud); Category category = new Category(); category.Id = 15; SubjectInfo subject = new SubjectInfo(); subject.Name = "Tom Poes"; subject.Id = 13; subject.Active = false; subject.Category = category; //test bool result = dut.UpdateSubject(subject); //validate Assert.IsTrue(result); }