Aspose words unit test

Hello, I’m trying to create a unit test for my application, but I would need to do a get image to bring my base64 image and I don’t know how to do it with the text.
can you help me?

[Fact]
public async Task EnsureThatGetDocumentAndReplaceSignatureWildcardsReplaceOrNotAsConfigured()
{
    var tenantId = 34;
    var flowId = 35;

    var text = "Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum {{coringa2}} has been the industry's standard dummy text {{coringa3}} ever since the 1500s, when an unknown printer took a galley of type and scrambled {{coringa2}} it to make a type specimen book.  {{coringa1}}";

    var templateFiles = new List<ProcessVersionTemplateFileInfo>() {
                new ProcessVersionTemplateFileInfo() {
                    Key ="f567sd8bv45",
                    Type = "PDF",
                    Name = "Template"
                },
            };

    var processVersionTemplateFieldMapping = new List<ProcessVersionTemplateFieldMappingInfo>()
            {
                new ProcessVersionTemplateFieldMappingInfo()
                {
                    WildCard="{{coringa1}}",
                    FieldComponentInternalId="input1"
                },
                new ProcessVersionTemplateFieldMappingInfo()
                {
                    WildCard="{{coringa2}}",
                    FieldComponentInternalId="input2"
                },
                new ProcessVersionTemplateFieldMappingInfo()
                {
                    WildCard="{{coringa3}}",
                    FieldComponentInternalId="input3"
                }
            };

    var flowInfo = new FlowInfo()
    {
        ProcessVersionId = 1,
        ProcessVersion = new ProcessVersionInfo()
        {
            Id = 1,
            TemplateFiles = templateFiles,
            ProcessVersionTemplateFieldMapping = processVersionTemplateFieldMapping
        },
        FieldValues = new List<FieldValueInfo>() {
                    new FieldValueInfo() { Id = 1, FieldValue = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAABzwAAACWCAYAAACrQP55AAAAAXNSR0IArs4c6QAAIABJREFUeF7t3X+U11WdP/BX3y3FQFEc5IfKhPgLFRBEUQGtRVFU2GJLMVE33DQrai1/HEFr06TWci3JSk+yrvDd8MdBEwVEyxLURJD4YXxF0SZEQVAZHVCsPfs9992Zz86MA/MZ+Mx8Pp+Zxz2HM4eZ+773dR/3/d/z3Pv+yJYtG/8nNAIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECJShwEcEnmW4a0omQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQCATEHh6EQgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQKFsBgWfZbp3CCRAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAQeHoHCBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAoWwGBZ9luncIJECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEBB4egcIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEChbAYFn2W6dwgkQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQEHh6BwgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQKFsBgWfZbp3CCRAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAQeHoHCBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAoWwGBZ9luncIJECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEBB4egcIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEChbAYFn2W6dwgkQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQEHh6BwgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQKFsBgWfZbp3CCRAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAQeHoHCBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAoWwGBZ9luncIJECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEBB4egcIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEChbAYFn2W6dwgkQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQEHh6BwgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQKFsBgWfZbp3CCRAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAQeHoHCBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAoWwGBZ9luncIJECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEBB4egcIECBAoF0LLF++MhYseCpmz54TkydfEc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rfc27Bhp8TSpcuyZTQWYAs8y32H1U+AAAECBAgQIECAAAECBAgQIECgPAQEnuWxT6okQIBAmxCoezVt5857xWuvrWlyXQ2/g9mcoLTJwVuhw513zoivfOWyejOdc85nY9q0n7XC7C07RbrSNl1tW9vSid0UfNZtDa8jXr78mejT56CWLczoBAgQIECAAAECBAgQIECAAAECBAi0KwGBZ7vaboslQIBAcQV69z4i3nhjY1ZE9+7dYs2alU0WlE4QppOEta3cAs8//akqjjzyf79jWbuO9D3Lk04aGsOHnxgDBw6ITp06NWlRah0anuBs7FrbhtcRu9K21HZRPQQIECBAgAABAgQIECBAgAABAgTKX0DgWf57aAUECBAoG4EjjhgU6cRmainkW7jwsSZrbxh45vtckwO3Yoerr/523HLLT3c448UXT4jzzjsnBg8e1IqV7dpUDU/fHnrowbF06dP1Bm0YeFZVrYqKiopdm9jTBAgQIECAAAECBAgQIECAAAECBAgQqCMg8PQ6ECBAgECrCfzzP385fvnLe3PzrV69LPbfv2eT89f9VmS5nfCsXdw113wnbr75J02u9dhjB8Wpp46I8ePPzb5zWuqtR48+8c4772RlHnzwQbFs2TO5khsGoukP6drbVateyPps3bo1Pvjgg+x7rL17V0aXLl3KYs2lvifqI0CAAAECBAgQIECAAAECBAgQINDeBASe7W3HrZcAAQJFFLjkkokxY8bMXAX/8R8/j7PP/scmK/rEJ/rGxo2bsn5du1bEn/60qslnSrHDtddeFwsXPh2LFi3Oq7xjjhkYp59+anb9bwoFR478+5K7+vaww46OV19dl63n0EMPiaVLn8qtrbHvr/bq1SvSVbjbax//+Mdj2LDjY+PGN7O1vvTSmuza39Gjz4yxY8fk5aYTAQIECBAgQIAAAQIECBAgQIAAAQLtS0Dg2b7222oJECBQVIHZs+fGuHEX5GoYP35c3Hbb1CZrGjx4WO5U4HHHDY7HH5/b5DOl3OGee2bF008/E0899ftYufKPeZfaocPuceSRfePHP/5hdiVwKbSJE78Z06bdlZXS8LrhhtcRd+u2X2zY8MZOlZ3vu7JTg3uIAAECBAgQIEC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XB9e2iy+eEDff/G+5/w8bdkruauH99usar7zyx+YMry8BAgQIECBAgAABAgQIECBAgAABAgSaFBB4NkmkAwECBAgUW+Cyy67Kvl9Z29JpxXRqsWGre6Vt+ibkscceExMnXhqDBh1d7CW06Pzjxl2QhZ4vvfTydudJpy7T6ctCt4Z706HD7vHmm3870dnwOuKWqqHQazIeAQIECBAgQIAAAQIECBAgQIAAAQLlJSDwLK/9Ui0BAgTapcCSJUvjpJPqn87c3vc40zc80zcl29ppznw2vrq6OjZvfifrOmXKjTFjRv0rfFvilOeyZSvixBP/vl55L7zwhzjggP0/FHiecMJx8dhjD+ezFH0IECBAgAABAgQIECBAgAABAgQIECCQt4DAM28qHQkQIECgmAJ1T2+mOhpenVrM2kp17oZmY8eOienT7yhouVVVa+OIIwbVG3Phwsdi4MAB0fBve+/dOdate6mg8xuMAAECBAgQIECAAAECBAgQIECAAAECAk/vAAECBAiUhcDcufPjs589r16t48ePi3RqUWtcoLVC4p49D450urS2TZ16U0yYcEHU1NREZeXh8f7727I/deu2X7z88vO2iwABAgTejeTjAAAN3klEQVQIECBAgAABAgQIECBAgAABAgUVEHgWlNNgBAgQINBSAik8Gz36c7Fo0eJ6U3z961+JKVP+taWmrTduOrH4zDPPxmmnjYjOnTu3ypw7O0n6fuYpp5wV77//fm6I9N3T9P3TQrfPfW58zJnzSG7Yvn0Pi8WLF2b/79PnqFi/fkPub6+99lLJ2xXax3gECBAgQIAAAQIECBAgQIAAAQIECLSsgMCzZX2NToAAAQIFFjj//Iti1qwHc6Put1/XmDPn/kghW0u2NGeaO7X+/Y+KG2/8bgwfPrQlp9ylsRs6pcG2993TXZooIq655jtx880/yQ3To0f3eOmlFdn/03W3KSiubfPmPdDqbs8/vyp+/vNfxGGHHRJf/eqXdnW5nidAgAABAgQIECBAgAABAgQIECBAoMQEBJ4ltiHKIUCAAIEdCyxY8GSkq1obtnR68ZxzxkafPn0KSpjmu/POGTFz5n31xi3Vb4i+8kpVfOtb19ULhVPhLXW6M41dNwyuRUonPFMI3fBa3YkTvxTf//71Bd2j7Q02Y8bM7ETutGl35bqMG/fZuOOOn7XK/CYhQIAAAQIECBAgQIAAAQIECBAgQKB1BASereNsFgIECBAooMCUKT+IG264sdERx44dE5/5zD9E796VkU5/7r9/z3r9Vq16IQviNm3aFFu2vBfbtm2LQw89OGp/nzqnkPPFF9fEt799Q7z11luNznP55V+P73znmgKuateHmj//13Hddd+LdJ1tw7Zy5eLMpCXasmUr4sQT/77e0C+88Ic44ID94557ZsUXvnBJvb+11DXEKXhNe3f33fdFdfU7jS61S5d9Yu3a1S3BYEwCBAgQIECAAAECBAgQIECAAAECBIokIPAsErxpCRAgQGDXBHYUetYd+WMf+1h0794t/s//+Uh06dKl0TBw4MABjf5+exWmwDRdzVpRUbFriyjg0ynsSyc70wnPui0FfPPnz27RK39TeFxZ2bfevI8+OjtOPPH47HfDh58azz33h3p/P+20U+Oss06Ps84aFbvt9rHYe++9m6WRgs205h2Fm40NmK4hTnunESBAgAABAgQIECBAgAABAgQIECDQdgQEnm1nL62EAAEC7U4g39CzkDApHF248LFCDrnLY1177fXx7/9+S6PjTJ9+R6RTry3ZGrtmeOrUm2LChAuyaZvap86d94q99+6cBdKpvfzyK7Hbbrtl//7yl7/EHnt0iF69esXy5Su2e3Izn/Ulh3QVcSl/ezWfdehDgAABAgQIECBAgAABAgQIECBAgEB9AYGnN4IAAQIEylqgqmptjBt3QSxfvrJF15FCsi98YXycc85nW3Se5gy+oyCxR4/uceONN7R42JnqTVfoDht2Sr3SGwatTYWezVl3c/qmkPPkk0+KUaNO/dD1xs0ZR18CBAgQIECAAAECBAgQIECAAAECBEpXQOBZunujMgIECBBopsDvfrcwHnvsNzF37vzYunVrbN5cHf/zPxH77rvPh656bWroFBimU4ef//w5ceqpn4p+/Y5q6pFW+3u6xnXChEu3O18KZ2+7bWpUVh7YKjWl0PmIIwbVm2v16mUfChivvPKauPXW21qspvSN0r59D4/DDjskTjvtlBg06Ojo2LFji81nYAIECBAgQIAAAQIECBAgQIAAAQIESkNA4Fka+6AKAgQIEGhhgRTKpQCw9mf67uS2bR9k16d26tQpu061W7f9oqbm3di48c0W/eblziy1pqYmFix4Kn78459GukJ2ey0FnePHj9uZKXbpmW7dekeqMbXkuWHDK42O9+KLa2Lu3Edizpz5sWjR4ti2bVuj/Tp02D26du2afXv1gw/+Eq+/vr5ev9pw84AD9o+rr7489tuv6y7V72ECBAgQIECAAAECBAgQIECAAAECBMpXQOBZvnuncgIECBBoJwIzZsyMWbMejEceeXS7Kx416rS4774ZRRNZs+bluPzySdn8P/zhlOjT56Bm1ZLWmNo+++wdRx/d/0OnQ1evfil23333Vju12qzidSZAgAABAgQIECBAgAABAgQIECBAoKgCAs+i8pucAAECBAg0LpBOcf7853fEs88uiXXrXtsu04QJF8TUqTdhJECAAAECBAgQIECAAAECBAgQIECAQLsVEHi22623cAIECBAoFYEUbqardpcsWRp//etfY9q0u5osbfDggXHaaafGpElXNNlXBwIECBAgQIAAAQIECBAgQIAAAQIECLRlAYFnW95dayNAgACBkhRYvnxlPPTQ3JgzZ17U1GyJ9F3LfNvYsWPioosujE9+8qR8H9GPAAECBAgQIECAAAECBAgQIECAAAECbVpA4Nmmt9fiCBAgQKBUBNK1tM88szjuv/9X2fc482mVlQfG+PHnRlXVn2P8+HExfPjQfB7ThwABAgQIECBAgAABAgQIECBAgAABAu1KQODZrrbbYgkQIECgNQXefvvtuPfe+7Orah999DexYcMb250+hZtbtrwXY8acET16dI9Ro0bGwIEDWrNccxEgQIAAAQIECBAgQIAAAQIECBAgQKAsBQSeZbltiiZAgACBchC4++77YsKESxstdcKEC6Jz587x3ntb49OfHu30ZjlsqBoJECBAgAABAgQIECBAgAABAgQIEChJAYFnSW6LoggQIECgLQg0FnheeOF5kcLOwYMHtYUlWgMBAgQIECBAgAABAgQIECBAgAABAgSKLiDwLPoWKIAAAQIE2qpA7ZW2CxY8mZ3gHDt2TFRUVLTV5VoXAQIECBAgQIAAAQIECBAgQIAAAQIEiiIg8CwKu0kJECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECiEgMCzEIrGIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECgKAICz6Kwm5QAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAgUIICDwLoWgMAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgSKIiDwLAq7SQkQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQKISAwLMQisYgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQKAoAgLPorCblAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgACBQggIPAuhaAwCBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBIoiIPAsCrtJCRAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAohIDAsxCKxiBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAoCgCAs+isJuUAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAIFCCAg8C6FoDAIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIEiiIg8CwKu0kJECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECiEgMCzEIrGIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECgKAICz6Kwm5QAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAgUIICDwLoWgMAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgSKIiDwLAq7SQkQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQKISAwLMQisYgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQKAoAgLPorCblAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgACBQggIPAuhaAwCBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBIoiIPAsCrtJCRAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAohIDAsxCKxiBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAoCgCAs+isJuUAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAIFCCAg8C6FoDAIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIEiiIg8CwKu0kJECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECiEgMCzEIrGIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECgKAICz6Kwm5QAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAgUIICDwLoWgMAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgSKIiDwLAq7SQkQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQKISAwLMQisYgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQKAoAgLPorCblAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgACBQggIPAuhaAwCBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBIoiIPAsCrtJCRAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAohIDAsxCKxiBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAoCgCAs+isJuUAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAIFCCAg8C6FoDAIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIEiiIg8CwKu0kJECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECiEgMCzEIrGIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECgKAICz6Kwm5QAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAgUII/H8cI0d01dsUYwAAAABJRU5ErkJggg==",
                        Field = new FieldInfo(){ ComponentInternalId = "input1" } },
                    new FieldValueInfo() { Id = 2, FieldValue = "Texto", Field = new FieldInfo(){ ComponentInternalId = "input2" } },
                    new FieldValueInfo() { Id = 2, FieldValue = "", Field = new FieldInfo(){ ComponentInternalId = "input3" } }
                }
    };

    AsposeWordsService asposeWordsService = new AsposeWordsService();

    _mockFlowService.Setup(x => x.GetFlowIncludingRelationShip(tenantId, flowId)).Returns(flowInfo);
    _mockStorageService.Setup(x => x.Download(It.IsAny<string>())).ReturnsAsync(GenerateStreamFromString(text));
    _mockAsposeService.Setup(x => x.GetText(It.IsAny<Stream>())).Returns(text);

    var templateVersionService = new ProcessVersionTemplateFileService(
                                    _mockContextDataService.Object,
                                    _mockRepository.Object,
                                    _mockStorageService.Object,
                                    asposeWordsService,
                                    _mockFlowService.Object,
                                    _mockMapper.Object);

    var result = await templateVersionService.GetDocumentAndReplaceWildcards(tenantId, flowId, TemplateSaveFormat.PDF);

    var textResult = asposeWordsService.GetText(result.FileStream);

    //achar uma forma de fazer um get na imagem gerada
    var imageResult = asposeWordsService;


    Assert.DoesNotContain("{{coringa1}}", textResult);
    Assert.DoesNotContain("{{coringa2}}", textResult);
    Assert.DoesNotContain("{{coringa3}}", textResult);
    Assert.Contains("Texto", textResult);
    // Assert.Contains("", imageResult);
    Assert.Contains(" dummy text  ever since", textResult);

@anemam without knowing what the GetText method does, it will be impossible for me to provide an accurate solution.
Additionally, checking for images as plain text may not be a good idea. If you want to learn how to test the Aspose.Words API properly, you can take a look at our examples repository.

Eduardo, sorry, the class I’m creating the unit test is below:code.docx (5.8 KB)

@anemam when using the method ToString(SaveFormat.Text) , the shapes are not included in the final result. This is because the process of that method is very similar to saving the document with TXT extension, and images and shapes in general are not supported in that format.