public void GetExists() { ClosingRemarkService closingRemarkService = new ClosingRemarkService(fixture.context); ParticipantService participantService = new ParticipantService(fixture.context); Participant participant = participantService.GetAll().First(); ActionService actionService = new ActionService(fixture.context); Action action = actionService.GetAll().First(); ClosingRemark ClosingRemarkCreate = closingRemarkService.Create(participant, "text", action); ClosingRemark ClosingRemarkGet = closingRemarkService.GetClosingRemark(ClosingRemarkCreate.Id); Assert.Equal(ClosingRemarkCreate, ClosingRemarkGet); }
public void GetDoesNotExist() { ClosingRemarkService closingRemarkService = new ClosingRemarkService(fixture.context); Assert.Throws <NotFoundInDBException>(() => closingRemarkService.GetClosingRemark("some_closingRemark_id_that_does_not_exist")); }