public void Verify_MapToSearchModel_AssignsCharacterVolumeSearchProperties()
 {
     // Arrange
     var mapper = new CharacterVolumeMapper();
     var model = CharacterVolumesMockingSetup.DoMockingSetupForCharacterVolumeModel();
     // 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.VolumeId, searchModel.VolumeId);
     Assert.Equal(model.Object.Volume?.CustomKey, searchModel.VolumeCustomKey);
     Assert.Equal(model.Object.Volume?.ApiDetailUrl, searchModel.VolumeApiDetailUrl);
     Assert.Equal(model.Object.Volume?.SiteDetailUrl, searchModel.VolumeSiteDetailUrl);
     Assert.Equal(model.Object.Volume?.Name, searchModel.VolumeName);
     Assert.Equal(model.Object.Volume?.ShortDescription, searchModel.VolumeShortDescription);
     Assert.Equal(model.Object.Volume?.Description, searchModel.VolumeDescription);
 }
 public void Verify_MapToEntity_WithExistingEntity_AssignsCharacterVolumeProperties()
 {
     // Arrange
     var mapper = new CharacterVolumeMapper();
     var model = CharacterVolumesMockingSetup.DoMockingSetupForCharacterVolumeModel();
     // Act
     ICharacterVolume existingEntity = new CharacterVolume { Id = 1 };
     mapper.MapToEntity(model.Object, ref existingEntity);
     // Assert
     // <None>
     // Related Objects
     Assert.Equal(model.Object.CharacterId, existingEntity.CharacterId);
     Assert.Equal(model.Object.VolumeId, existingEntity.VolumeId);
     // Associated Objects
     // <None>
 }
 public void Verify_MapToModel_AssignsCharacterVolumeProperties()
 {
     // Arrange
     var mapper = new CharacterVolumeMapper();
     var entity = CharacterVolumesMockingSetup.DoMockingSetupForCharacterVolume();
     // Act
     var model = mapper.MapToModel(entity.Object);
     // Assert
     // <None>
     // Related Objects
     Assert.Equal(entity.Object.CharacterId, model.CharacterId);
     Assert.Equal(entity.Object.VolumeId, model.VolumeId);
     // Associated Objects
     // <None>
 }
 public void Verify_AreEqual_WithEqualObjects_ReturnsTrue()
 {
     // Arrange
     var mapper = new CharacterVolumeMapper();
     var model = CharacterVolumesMockingSetup.DoMockingSetupForCharacterVolumeModel(1);
     var entity = CharacterVolumesMockingSetup.DoMockingSetupForCharacterVolume(1);
     // Act
     var result = mapper.AreEqual(model.Object, entity.Object);
     // Assert
     Assert.True(result);
 }