Beispiel #1
0
        public void InstallIntegration_ErrorInstall_ReturnsFalseFillMessage()
        {
            // Arrange
            _properties.Add(ObjectKey, "object");
            _properties.Add("AllowAddInt", "true");
            _properties.Add("AllowAddList", "true");

            string message;

            ShimSfService.AllInstances.InstallIntegrationStringStringStringStringGuidStringBooleanBooleanBoolean =
                (
                    sender,
                    integrationKey,
                    apiUrl,
                    webName,
                    webUrl,
                    integrationId,
                    objectName,
                    incomingEnabled,
                    outgoingEnabled,
                    allowDeletion) =>
            {
                throw new Exception(DummyString);
            };

            // Act
            var actualResult = _testEntity.InstallIntegration(_webProperties, _integrationLog, out message, string.Empty, string.Empty);

            // Assert
            this.ShouldSatisfyAllConditions(
                () => actualResult.ShouldBeFalse(),
                () => message.ShouldBe(DummyString));
        }