public void Should_Parse_SymbolBySicCodeMessage_WithCommasInDescription(string cultureName)
        {
            // Arrange
            TestHelper.SetThreadCulture(cultureName);
            var message = "8322,PRSC,1,1,PROVIDENCE,SERVICE,CORP,";

            // Act
            var symbolBySicCodeMessageParsed = SymbolBySicCodeMessage.Parse(message);
            var symbolBySicCodeMessage       = new SymbolBySicCodeMessage(8322, "PRSC", 1, 1, "PROVIDENCE,SERVICE,CORP");

            // Assert
            Assert.AreEqual(symbolBySicCodeMessageParsed, symbolBySicCodeMessage);
        }
        public void Should_ParseWithRequestId_SymbolBySicCodeMessage(string cultureName)
        {
            // Arrange
            TestHelper.SetThreadCulture(cultureName);
            var message = "TESTREQUEST,8361,CHCR,4,1,COMPREHENSIVE CARE,";

            // Act
            var symbolBySicCodeMessageParsed = SymbolBySicCodeMessage.ParseWithRequestId(message);
            var symbolBySicCodeMessage       = new SymbolBySicCodeMessage(8361, "CHCR", 4, 1, "COMPREHENSIVE CARE", "TESTREQUEST");

            // Assert
            Assert.AreEqual(symbolBySicCodeMessageParsed, symbolBySicCodeMessage);
        }
Beispiel #3
0
        public void Should_Parse_SymbolBySicCodeMessage(string cultureName)
        {
            // Arrange
            TestHelper.SetThreadCulture(cultureName);
            var message   = "8322,PRSC,1,1,PROVIDENCE SERVICE CORP,";
            var message62 = "LS,8322,PRSC,1,1,PROVIDENCE SERVICE CORP,";

            // Act
            var symbolBySicCodeMessageParsed   = SymbolBySicCodeMessage.Parse(message);
            var symbolBySicCodeMessage62Parsed = SymbolBySicCodeMessage.Parse(message62);
            var symbolBySicCodeMessage         = new SymbolBySicCodeMessage(8322, "PRSC", 1, 1, "PROVIDENCE SERVICE CORP");

            // Assert
            Assert.AreEqual(symbolBySicCodeMessageParsed, symbolBySicCodeMessage);
            Assert.AreEqual(symbolBySicCodeMessage62Parsed, symbolBySicCodeMessage);
        }