public void Verify_AreEqual_WithDifferentObjects_ReturnsFalse()
        {
            // Arrange
            var mapper = new TeamCharacterFriendMapper();
            var model  = TeamCharacterFriendsMockingSetup.DoMockingSetupForTeamCharacterFriendModel(1);
            var entity = TeamCharacterFriendsMockingSetup.DoMockingSetupForTeamCharacterFriend(2);
            // Act
            var result = mapper.AreEqual(model.Object, entity.Object);

            // Assert
            Assert.False(result);
        }
        public void Verify_MapToEntityExtension_CallsMapToEntity()
        {
            // Arrange
            var mockMapper = new Mock <TeamCharacterFriendMapper>();

            mockMapper.Setup(x => x.MapToEntity(It.IsAny <ITeamCharacterFriendModel>(), It.IsAny <int>()));
            var mockModel = TeamCharacterFriendsMockingSetup.DoMockingSetupForTeamCharacterFriendModel(1);

            TeamCharacterFriendMapperExtensions.OverrideMapper(mockMapper.Object);
            // Act
            mockModel.Object.MapToEntity();
            // Assert
            mockMapper.Verify(x => x.MapToEntity(It.IsAny <ITeamCharacterFriendModel>(), It.IsAny <int>()), Times.Once);
        }
        public void Verify_MapToEntity_AssignsTeamCharacterFriendProperties()
        {
            // Arrange
            var mapper = new TeamCharacterFriendMapper();
            var model  = TeamCharacterFriendsMockingSetup.DoMockingSetupForTeamCharacterFriendModel();
            // Act
            var entity = mapper.MapToEntity(model.Object);

            // Assert
            // <None>
            // Related Objects
            Assert.Equal(model.Object.TeamId, entity.TeamId);
            Assert.Equal(model.Object.FriendId, entity.FriendId);
            // Associated Objects
            // <None>
        }
        public void Verify_MapToSearchModel_AssignsTeamCharacterFriendSearchProperties()
        {
            // Arrange
            var mapper = new TeamCharacterFriendMapper();
            var model  = TeamCharacterFriendsMockingSetup.DoMockingSetupForTeamCharacterFriendModel();
            // Act
            var searchModel = mapper.MapToSearchModel(model.Object);

            // Assert
            Assert.Equal(model.Object.TeamId, searchModel.TeamId);
            Assert.Equal(model.Object.Team?.CustomKey, searchModel.TeamCustomKey);
            Assert.Equal(model.Object.Team?.ApiDetailUrl, searchModel.TeamApiDetailUrl);
            Assert.Equal(model.Object.Team?.SiteDetailUrl, searchModel.TeamSiteDetailUrl);
            Assert.Equal(model.Object.Team?.Name, searchModel.TeamName);
            Assert.Equal(model.Object.Team?.ShortDescription, searchModel.TeamShortDescription);
            Assert.Equal(model.Object.Team?.Description, searchModel.TeamDescription);
            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);
        }