Skip to content

Commit e0cac5e

Browse files
Apply suggestions from code review
Co-authored-by: Nikolaj Geisle <[email protected]>
1 parent 563babd commit e0cac5e

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

src/Umbraco.Tests.Common/Builders/ContentCultureInfosCollectionBuilder.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ namespace Umbraco.Cms.Tests.Common.Builders
77
{
88
public class ContentCultureInfosCollectionBuilder : ChildBuilderBase<ContentBuilder, ContentCultureInfosCollection>, IBuildContentCultureInfosCollection
99
{
10-
private List<ContentCultureInfosBuilder> _cultureInfosBuilders;
10+
private readonly List<ContentCultureInfosBuilder> _cultureInfosBuilders;
1111
public ContentCultureInfosCollectionBuilder(ContentBuilder parentBuilder) : base(parentBuilder) => _cultureInfosBuilders = new List<ContentCultureInfosBuilder>();
1212

1313
public ContentCultureInfosBuilder AddCultureInfos()

src/Umbraco.Tests.Integration/Umbraco.Web.BackOffice/Controllers/ContentControllerTests.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
// Copyright (c) Umbraco.
22
// See LICENSE for more details.
33

4-
using System.Globalization;
54
using System.Linq;
65
using System.Net;
76
using System.Net.Http;
@@ -440,12 +439,11 @@ public async Task PostSave_Validates_Domains_Exist()
440439
{
441440
{ new StringContent(JsonConvert.SerializeObject(model)), "contentItem" }
442441
});
442+
443443
var body = await response.Content.ReadAsStringAsync();
444444
body = body.TrimStart(AngularJsonMediaTypeFormatter.XsrfPrefix);
445445
ContentItemDisplay display = JsonConvert.DeserializeObject<ContentItemDisplay>(body);
446446

447-
var currentThreadCulture = Thread.CurrentThread.CurrentCulture.TwoLetterISOLanguageName;
448-
var currentUICulture = Thread.CurrentThread.CurrentUICulture.TwoLetterISOLanguageName;
449447
ILocalizedTextService localizedTextService = GetRequiredService<ILocalizedTextService>();
450448
var expectedMessage = localizedTextService.Localize("speechBubbles", "publishWithNoDomains");
451449

0 commit comments

Comments
 (0)