Esempio n. 1
0
    public void TestResources()
    {
        Assert.Pass();
        var service = new NStackLocalizeService(new NStackRepository(Model));

        try
        {
            var temp      = service.GetResourceAsync(1208).Result;
            var something = temp.Data;
        }
        catch (Exception)
        {
        }

        Assert.IsTrue(true);
    }
Esempio n. 2
0
    public async Task TestGetLanguageWithLocale()
    {
        var translations = await _service.GetResourceAsync <TranslationData>("da-DK", NStackPlatform.Backend);

        Assert.AreEqual(_danish.Default.Text, translations.Data.Default.Text);
    }