Base solution for your next web application
Ends in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

Mocking session for tests #2062


User avatar
0
worthyvii created

What is the recommended way to write tests which test input which depends on tenant ID? (Create message, for example)


1 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi,

    Have you seen unit tests for aspnetboilerplate module zero template ? Here <a class="postlink" href="https://github.com/aspnetboilerplate/module-zero-template/tree/master/src/Tests/AbpCompanyName.AbpProjectName.Tests">https://github.com/aspnetboilerplate/mo ... Name.Tests</a>.

    This base class for unit tests might give you an idea <a class="postlink" href="https://github.com/aspnetboilerplate/module-zero-template/blob/master/src/Tests/AbpCompanyName.AbpProjectName.Tests/AbpProjectNameTestBase.cs">https://github.com/aspnetboilerplate/mo ... estBase.cs</a>