public void TestDeleteNonExistingEvaluation_Throws_ItemNotFoundException_Message() { var expected = "Unable to find an evaluation with id f480b496-2356-402b-9fdc-a1893cc64e16"; try { var service = new EvaluationsService(new EvaluationsStubDao()); service.DeleteEvaluation(Guid.Parse("f480b496-2356-402b-9fdc-a1893cc64e16")); } catch (Exception e) { Assert.Equal(expected, e.Message); } }
public void TestDeleteNonExistingEvaluation_Throws_ItemNotFoundException() { var service = new EvaluationsService(new EvaluationsStubDao()); Assert.Throws <ItemNotFoundServiceException>(() => service.DeleteEvaluation(Guid.Parse("f480b496-2356-402b-9fdc-a1893cc64e16"))); }
public void TestDeleteEvaluation() { var service = new EvaluationsService(new EvaluationsStubDao()); service.DeleteEvaluation(Guid.Parse("11111111-1111-1111-1111-111111111113")); }