Webiant Logo Webiant Logo
  1. No results found.

    Try your search with a different keyword or use * as a wildcard.

LanguageServiceTests.cs

using FluentAssertions;
using Nop.Services.Localization;
using NUnit.Framework;

namespace Nop.Tests.Nop.Services.Tests.Localization;

[TestFixture]
public class LanguageServiceTests : ServiceTest
{
    private ILanguageService _languageService;

    [OneTimeSetUp]
    public void SetUp()
    {
        _languageService = GetService();
    }

    [Test]
    public async Task CanGetAllLanguages()
    {
        var languages = await _languageService.GetAllLanguagesAsync();
        languages.Should().NotBeNull();
        languages.Any().Should().BeTrue();
    }
}