public void HttpStatusCodeWithIdIsPopulated() { Guid id = Guid.NewGuid(); var ex = new ConnectorNotFoundException(id); Assert.AreEqual(HttpStatusCode.BadRequest, ex.ResponseCode); }
public void ErrorMessageWithIdIsPopulated() { Guid id = Guid.NewGuid(); var ex = new ConnectorNotFoundException(id); Assert.AreEqual($"Connector with Id '{id}' not found.", ex.Message); }
public void HttpStatusCodeIsPopulated() { var ex = new ConnectorNotFoundException("conn"); Assert.AreEqual(HttpStatusCode.BadRequest, ex.ResponseCode); }
public void HttpErrorMessageIsPopulated() { var ex = new ConnectorNotFoundException("conn"); Assert.AreEqual("ConnectorNotFound", ex.HttpErrorMessage); }
public void ErrorMessageIsPopulated() { var ex = new ConnectorNotFoundException("conn"); Assert.AreEqual("Connector 'conn' not found.", ex.Message); }
public void IsBaseException() { var ex = new ConnectorNotFoundException("conn"); Assert.IsInstanceOfType(ex, typeof(BaseCaughtException)); }