public void TestAddSubject() { //prepare SubjectModel dut = new SubjectModel(crud); Category category = new Category(); category.Id = 5; SubjectInfo subject = new SubjectInfo(); subject.Name = "schnappie"; subject.Category = category; //test bool result = dut.AddSubject(subject); //validate Assert.IsTrue(result); }