Refactor: standardize namespace and using directive style

Refactored all C# test files to use explicit namespace declarations and moved all using directives inside the namespace block for consistency. Updated assembly info and cache files to reflect the new build. Adjusted MvcTestingAppManifest.json to use fully qualified assembly names. No functional changes; all updates are related to code style, organization, and project metadata.
This commit is contained in:
2026-02-20 16:26:53 -05:00
parent 44ab9e1d6d
commit af1152b001
1436 changed files with 36615 additions and 15508 deletions
+27 -29
View File
@@ -3,35 +3,33 @@
// </copyright>
#nullable disable
namespace MediaBrowser.Model.Globalization
{
/// <summary>
/// Class CountryInfo.
/// </summary>
public class CountryInfo
{
/// <summary>
/// Gets or sets the name.
/// </summary>
/// <value>The name.</value>
public string Name { get; set; }
namespace MediaBrowser.Model.Globalization;
/// <summary>
/// Class CountryInfo.
/// </summary>
public class CountryInfo
{
/// <summary>
/// Gets or sets the name.
/// </summary>
/// <value>The name.</value>
public string Name { get; set; }
/// <summary>
/// Gets or sets the display name.
/// </summary>
/// <value>The display name.</value>
public string DisplayName { get; set; }
/// <summary>
/// Gets or sets the display name.
/// </summary>
/// <value>The display name.</value>
public string DisplayName { get; set; }
/// <summary>
/// Gets or sets the name of the two letter ISO region.
/// </summary>
/// <value>The name of the two letter ISO region.</value>
public string TwoLetterISORegionName { get; set; }
/// <summary>
/// Gets or sets the name of the two letter ISO region.
/// </summary>
/// <value>The name of the two letter ISO region.</value>
public string TwoLetterISORegionName { get; set; }
/// <summary>
/// Gets or sets the name of the three letter ISO region.
/// </summary>
/// <value>The name of the three letter ISO region.</value>
public string ThreeLetterISORegionName { get; set; }
}
}
/// <summary>
/// Gets or sets the name of the three letter ISO region.
/// </summary>
/// <value>The name of the three letter ISO region.</value>
public string ThreeLetterISORegionName { get; set; }
}
+47 -49
View File
@@ -4,59 +4,57 @@
#pragma warning disable CS1591
using System.Collections.Generic;
using global::System.Collections.Generic;
namespace MediaBrowser.Model.Globalization
{
/// <summary>
/// Class CultureDto.
/// </summary>
public class CultureDto
{
public CultureDto(string name, string displayName, string twoLetterISOLanguageName, IReadOnlyList<string> threeLetterISOLanguageNames)
{
Name = name;
DisplayName = displayName;
TwoLetterISOLanguageName = twoLetterISOLanguageName;
ThreeLetterISOLanguageNames = threeLetterISOLanguageNames;
}
namespace MediaBrowser.Model.Globalization;
/// <summary>
/// Class CultureDto.
/// </summary>
public class CultureDto
{
public CultureDto(string name, string displayName, string twoLetterISOLanguageName, IReadOnlyList<string> threeLetterISOLanguageNames)
{
Name = name;
DisplayName = displayName;
TwoLetterISOLanguageName = twoLetterISOLanguageName;
ThreeLetterISOLanguageNames = threeLetterISOLanguageNames;
}
/// <summary>
/// Gets the name.
/// </summary>
/// <value>The name.</value>
public string Name { get; }
/// <summary>
/// Gets the name.
/// </summary>
/// <value>The name.</value>
public string Name { get; }
/// <summary>
/// Gets the display name.
/// </summary>
/// <value>The display name.</value>
public string DisplayName { get; }
/// <summary>
/// Gets the display name.
/// </summary>
/// <value>The display name.</value>
public string DisplayName { get; }
/// <summary>
/// Gets the name of the two letter ISO language.
/// </summary>
/// <value>The name of the two letter ISO language.</value>
public string TwoLetterISOLanguageName { get; }
/// <summary>
/// Gets the name of the two letter ISO language.
/// </summary>
/// <value>The name of the two letter ISO language.</value>
public string TwoLetterISOLanguageName { get; }
/// <summary>
/// Gets the name of the three letter ISO language.
/// </summary>
/// <value>The name of the three letter ISO language.</value>
public string? ThreeLetterISOLanguageName
{
get
{
var vals = ThreeLetterISOLanguageNames;
if (vals.Count > 0)
{
return vals[0];
}
/// <summary>
/// Gets the name of the three letter ISO language.
/// </summary>
/// <value>The name of the three letter ISO language.</value>
public string? ThreeLetterISOLanguageName
{
get
{
var vals = ThreeLetterISOLanguageNames;
if (vals.Count > 0)
{
return vals[0];
}
return null;
}
}
return null;
}
}
public IReadOnlyList<string> ThreeLetterISOLanguageNames { get; }
}
}
public IReadOnlyList<string> ThreeLetterISOLanguageNames { get; }
}
@@ -2,12 +2,12 @@
// Copyright (c) PlaceholderCompany. All rights reserved.
// </copyright>
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
using MediaBrowser.Model.Entities;
namespace MediaBrowser.Model.Globalization;
using global::System.Collections.Generic;
using global::System.Diagnostics.CodeAnalysis;
using MediaBrowser.Model.Entities;
/// <summary>
/// Interface ILocalizationManager.
/// </summary>
@@ -5,18 +5,16 @@
#nullable disable
#pragma warning disable CS1591
namespace MediaBrowser.Model.Globalization
{
public class LocalizationOption
{
public LocalizationOption(string name, string value)
{
Name = name;
Value = value;
}
namespace MediaBrowser.Model.Globalization;
public class LocalizationOption
{
public LocalizationOption(string name, string value)
{
Name = name;
Value = value;
}
public string Name { get; set; }
public string Name { get; set; }
public string Value { get; set; }
}
}
public string Value { get; set; }
}