Skip to content

Commit 4a7b9d8

Browse files
committed
Renamed the view model for testing the AttributeValueDictionary
With the renaming of the `AttributeDictionary` to the `AttributeValueDictionary` (38c54c3), the test project's `AttributeDictionaryConstructorTopicViewModel` is now renamed to `AttributeValueDictionaryConstructorTopicViewModel`. This class name was already a mouthful, but now it _really_ is!
1 parent 38c54c3 commit 4a7b9d8

2 files changed

Lines changed: 8 additions & 8 deletions

File tree

OnTopic.Tests/TopicMappingServiceTest.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@ public async Task Map_AttributeDictionary_ReturnsNewModel() {
307307
topic.Attributes.SetValue("UnmappedProperty", "Unmapped Value");
308308
topic.VersionHistory.Add(lastModified);
309309

310-
var target = await _mappingService.MapAsync<AttributeDictionaryConstructorTopicViewModel>(topic).ConfigureAwait(false);
310+
var target = await _mappingService.MapAsync<AttributeValueDictionaryConstructorTopicViewModel>(topic).ConfigureAwait(false);
311311

312312
Assert.Equal("Value", target?.Title);
313313
Assert.Equal("Short Title", target?.ShortTitle);

OnTopic.Tests/ViewModels/AttributeDictionaryConstructorTopicViewModel.cs renamed to OnTopic.Tests/ViewModels/AttributeValueDictionaryConstructorTopicViewModel.cs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,25 +17,25 @@ namespace OnTopic.Tests.ViewModels {
1717
/// <remarks>
1818
/// This is a sample class intended for test purposes only; it is not designed for use in a production environment.
1919
/// </remarks>
20-
public record AttributeDictionaryConstructorTopicViewModel: PageTopicViewModel {
20+
public record AttributeValueDictionaryConstructorTopicViewModel: PageTopicViewModel {
2121

2222
/*==========================================================================================================================
2323
| CONSTRUCTOR
2424
\-------------------------------------------------------------------------------------------------------------------------*/
2525
/// <summary>
26-
/// Initializes a new <see cref="AttributeDictionaryConstructorTopicViewModel"/> with an <paramref name="attributes"/>
27-
/// dictionary.
26+
/// Initializes a new <see cref="AttributeValueDictionaryConstructorTopicViewModel"/> with an <paramref name="attributes"
27+
/// /> dictionary.
2828
/// </summary>
29-
/// <param name="attributes">An <see cref="AttributeDictionaryConstructorTopicViewModel"/> of attribute values.</param>
30-
public AttributeDictionaryConstructorTopicViewModel(AttributeValueDictionary attributes) : base(attributes) {
29+
/// <param name="attributes">An <see cref="AttributeValueDictionaryConstructorTopicViewModel"/> of attribute values.</param>
30+
public AttributeValueDictionaryConstructorTopicViewModel(AttributeValueDictionary attributes) : base(attributes) {
3131
Contract.Requires(attributes, nameof(attributes));
3232
MappedProperty = attributes.GetValue(nameof(MappedProperty));
3333
}
3434

3535
/// <summary>
36-
/// Initializes a new <see cref="AttributeDictionaryConstructorTopicViewModel"/> with no parameters.
36+
/// Initializes a new <see cref="AttributeValueDictionaryConstructorTopicViewModel"/> with no parameters.
3737
/// </summary>
38-
public AttributeDictionaryConstructorTopicViewModel() { }
38+
public AttributeValueDictionaryConstructorTopicViewModel() { }
3939

4040
/*==========================================================================================================================
4141
| PROPERTIES

0 commit comments

Comments
 (0)