public void GetTranslation_WhenLanguageCodeAndKeyIsPassed_ShouldReturnExpectedValue(LanguageCode languageCode, string key, string expectedResult) { // Arrange var controller = new TranslationController(_translationHelper, _dbContext); // Act var response = controller.GetTranslation(key, languageCode) as ObjectResult; // Assert response.Should().NotBeNull(); response.Should().BeOfType <OkObjectResult>(); response.StatusCode.Should().Be((int)HttpStatusCode.OK); response.Value.Should().Be(expectedResult); }