Exemple #1
0
        public void HttpStatusCodeWithIdIsPopulated()
        {
            Guid id = Guid.NewGuid();
            var  ex = new ConnectorNotFoundException(id);

            Assert.AreEqual(HttpStatusCode.BadRequest, ex.ResponseCode);
        }
Exemple #2
0
        public void ErrorMessageWithIdIsPopulated()
        {
            Guid id = Guid.NewGuid();
            var  ex = new ConnectorNotFoundException(id);

            Assert.AreEqual($"Connector with Id '{id}' not found.", ex.Message);
        }
Exemple #3
0
        public void HttpStatusCodeIsPopulated()
        {
            var ex = new ConnectorNotFoundException("conn");

            Assert.AreEqual(HttpStatusCode.BadRequest, ex.ResponseCode);
        }
Exemple #4
0
        public void HttpErrorMessageIsPopulated()
        {
            var ex = new ConnectorNotFoundException("conn");

            Assert.AreEqual("ConnectorNotFound", ex.HttpErrorMessage);
        }
Exemple #5
0
        public void ErrorMessageIsPopulated()
        {
            var ex = new ConnectorNotFoundException("conn");

            Assert.AreEqual("Connector 'conn' not found.", ex.Message);
        }
Exemple #6
0
        public void IsBaseException()
        {
            var ex = new ConnectorNotFoundException("conn");

            Assert.IsInstanceOfType(ex, typeof(BaseCaughtException));
        }