Use Comment.Text instead of ValueObjects.Name

This commit is contained in:
Biarity
2019-03-18 08:23:37 +10:00
parent d4b85b6bbc
commit a582c6be06
6 changed files with 32 additions and 76 deletions

View File

@@ -31,13 +31,13 @@ namespace SieveUnitTests.Services
mapper.Property<Post>(p => p.OnlySortableViaFluentApi)
.CanSort();
mapper.Property<Comment>(c => c.AuthorFirstName.Value)
mapper.Property<Post>(p => p.TopComment.Text)
.CanFilter()
.HasName("firstName");
.HasName("topc");
mapper.Property<Comment>(c => c.AuthorLastName.Value)
mapper.Property<Post>(p => p.FeaturedComment.Text)
.CanFilter()
.HasName("lastName");
.HasName("featc");
return mapper;
}