public async Task Should_Get_Localized_Content_By_Culture() { (await VirtualFileTemplateContentContributor.GetOrNullAsync( new TemplateContentContributorContext(TemplateDefinitionManager.Get(TestTemplates.WelcomeEmail), ServiceProvider, "en"))) .ShouldBe(WelcomeEmailEnglishContent); (await VirtualFileTemplateContentContributor.GetOrNullAsync( new TemplateContentContributorContext(TemplateDefinitionManager.Get(TestTemplates.WelcomeEmail), ServiceProvider, "tr"))) .ShouldBe(WelcomeEmailTurkishContent); }
public async Task Should_Get_Localized_Content_By_Culture() { (await _virtualFileTemplateContentContributor.GetOrNullAsync( new TemplateContentContributorContext(_templateDefinitionManager.Get(TestTemplates.WelcomeEmail), ServiceProvider, "en"))) .ShouldBe("Welcome {{model.name}} to the abp.io!"); (await _virtualFileTemplateContentContributor.GetOrNullAsync( new TemplateContentContributorContext(_templateDefinitionManager.Get(TestTemplates.WelcomeEmail), ServiceProvider, "tr"))) .ShouldBe("Merhaba {{model.name}}, abp.io'ya hoşgeldiniz!"); }