public void Verify_Add_Should_AddTheEntityToTheContext()
 {
     // Arrange
     Mock<IDbSet<EpisodeTeamFirstAppearance>> mockSetEpisodeTeamFirstAppearances;
     var mockContext = EpisodeTeamFirstAppearancesMockingSetup.DoMockingSetupForContext(false, out mockSetEpisodeTeamFirstAppearances);
     var repository = new EpisodeTeamFirstAppearancesRepository(mockContext.Object);
     var episodeTeamFirstAppearances = new EpisodeTeamFirstAppearance { Active = true, CustomKey = "SALVATORE-RAA", };
     // Act
     repository.Add(episodeTeamFirstAppearances);
     // Assert
     mockSetEpisodeTeamFirstAppearances.Verify(x => x.Add(episodeTeamFirstAppearances), Times.Once);
 }
 public void Verify_MapToEntity_WithExistingEntity_AssignsEpisodeTeamFirstAppearanceProperties()
 {
     // Arrange
     var mapper = new EpisodeTeamFirstAppearanceMapper();
     var model = EpisodeTeamFirstAppearancesMockingSetup.DoMockingSetupForEpisodeTeamFirstAppearanceModel();
     // Act
     IEpisodeTeamFirstAppearance existingEntity = new EpisodeTeamFirstAppearance { Id = 1 };
     mapper.MapToEntity(model.Object, ref existingEntity);
     // Assert
     // <None>
     // Related Objects
     Assert.Equal(model.Object.EpisodeId, existingEntity.EpisodeId);
     Assert.Equal(model.Object.TeamId, existingEntity.TeamId);
     // Associated Objects
     // <None>
 }