public void Verify_MapToSearchModel_AssignsCharacterFriendSearchProperties() { // Arrange var mapper = new CharacterFriendMapper(); var model = CharacterFriendsMockingSetup.DoMockingSetupForCharacterFriendModel(); // Act var searchModel = mapper.MapToSearchModel(model.Object); // Assert Assert.Equal(model.Object.CharacterId, searchModel.CharacterId); Assert.Equal(model.Object.Character?.CustomKey, searchModel.CharacterCustomKey); Assert.Equal(model.Object.Character?.ApiDetailUrl, searchModel.CharacterApiDetailUrl); Assert.Equal(model.Object.Character?.SiteDetailUrl, searchModel.CharacterSiteDetailUrl); Assert.Equal(model.Object.Character?.Name, searchModel.CharacterName); Assert.Equal(model.Object.Character?.ShortDescription, searchModel.CharacterShortDescription); Assert.Equal(model.Object.Character?.Description, searchModel.CharacterDescription); Assert.Equal(model.Object.FriendId, searchModel.FriendId); Assert.Equal(model.Object.Friend?.CustomKey, searchModel.FriendCustomKey); Assert.Equal(model.Object.Friend?.ApiDetailUrl, searchModel.FriendApiDetailUrl); Assert.Equal(model.Object.Friend?.SiteDetailUrl, searchModel.FriendSiteDetailUrl); Assert.Equal(model.Object.Friend?.Name, searchModel.FriendName); Assert.Equal(model.Object.Friend?.ShortDescription, searchModel.FriendShortDescription); Assert.Equal(model.Object.Friend?.Description, searchModel.FriendDescription); }