public void Should_Parse_SymbolByNaicsCodeMessage(string cultureName) { // Arrange TestHelper.SetThreadCulture(cultureName); var message = "924110,EESC,4,1,EASTERN ENVTL SOLTNS CP,"; // Act var symbolByNaicsCodeMessageParsed = SymbolByNaicsCodeMessage.Parse(message); var symbolByNaicsCodeMessage = new SymbolByNaicsCodeMessage(924110, "EESC", 4, 1, "EASTERN ENVTL SOLTNS CP"); // Assert Assert.AreEqual(symbolByNaicsCodeMessageParsed, symbolByNaicsCodeMessage); }
public void Should_ParseWithRequestId_SymbolByNaicsCodeMessage(string cultureName) { // Arrange TestHelper.SetThreadCulture(cultureName); var message = "TESTREQUEST,928110,TCNH,4,1,TECHNEST HOLDINGS INC,"; // Act var symbolByNaicsCodeMessageParsed = SymbolByNaicsCodeMessage.ParseWithRequestId(message); var symbolByNaicsCodeMessage = new SymbolByNaicsCodeMessage(928110, "TCNH", 4, 1, "TECHNEST HOLDINGS INC", "TESTREQUEST"); // Assert Assert.AreEqual(symbolByNaicsCodeMessageParsed, symbolByNaicsCodeMessage); }