public void OMM_Exception_SubConfiguration_WithConditional_Default_SubValueConfiguration_NoLicenses()
        {
            AppReturnedErrorException ex = new AppReturnedErrorException("")
            {
                ErrorCode = ErrorCodes.NoLicenses
            };
            string value = ObjectMessageMap.GetMessage(ex);

            Assert.AreEqual(TestResources.NO_LICENSES, value);
        }
        public void OMM_Exception_SubConfiguration_WithConditional_Default_SubValueConfiguration_AccessDenied()
        {
            AppReturnedErrorException ex = new AppReturnedErrorException("")
            {
                ErrorCode = ErrorCodes.AccessDenied
            };
            string value = ObjectMessageMap.GetMessage(ex);

            Assert.AreEqual(TestResources.ACCESS_DENIED, value);
        }
        public void OMM_Exception_SubConfiguration_WithConditional_WhenMatched_ResourceMessage_WithData()
        {
            string appName = DataGenerator.RandomString(25);
            AppReturnedErrorException ex = new AppReturnedErrorException("")
            {
                ErrorCode      = ErrorCodes.Success,
                AppDisplayName = appName
            };
            string value = ObjectMessageMap.GetMessage(ex);

            Assert.AreEqual(string.Format(TestResources.RESULT_SUCCESS, appName), value);
        }
        public void OMM_Exception_SubConfiguration_WithConditional_WhenMatched_LambdaMessage_WithManyDatas()
        {
            string appName               = DataGenerator.RandomString(8);
            string instanceName          = DataGenerator.RandomString(19);
            string logEntryId            = DataGenerator.RandomString(25);
            string errorMessage          = "You had an error. LogEntryID: {0}, Applicaiton: {1}, Instance: {2}";
            AppReturnedErrorException ex = new AppReturnedErrorException(errorMessage)
            {
                ErrorCode           = ErrorCodes.ApplicationSpecificError,
                AppDisplayName      = appName,
                InstanceDisplayName = instanceName,
                ErrorLogEntryId     = logEntryId
            };
            string value = ObjectMessageMap.GetMessage(ex);

            Assert.AreEqual(string.Format(errorMessage, logEntryId, appName, instanceName), value);
        }