public void PutWithIncorrectId() { var testConference = new ConferenceWithoutIDModel(); var testId = new Guid().ToString("N"); var testController = new ConferencesController(); Assert.Throws <NotFoudException>(delegate { testController.Put(testConference, testId); }); }