public void Verify_Remove_Should_RemoveTheEntityFromTheContext()
        {
            // Arrange
            Mock <IDbSet <Profile> > mockSetProfiles;
            var mockContext = ProfilesMockingSetup.DoMockingSetupForContext(true, out mockSetProfiles);
            var repository  = new ProfilesRepository(mockContext.Object);
            var profiles    = repository.Get(1);

            // Act
            repository.Remove(profiles);
            // Assert
            mockSetProfiles.Verify(x => x.Remove((Profile)profiles), Times.Once);
        }
 public void Verify_Remove_Should_RemoveTheEntityFromTheContext()
 {
     // Arrange
     Mock<IDbSet<Profile>> mockSetProfiles;
     var mockContext = ProfilesMockingSetup.DoMockingSetupForContext(true, out mockSetProfiles);
     var repository = new ProfilesRepository(mockContext.Object);
     var profiles = repository.Get(1);
     // Act
     repository.Remove(profiles);
     // Assert
     mockSetProfiles.Verify(x => x.Remove((Profile)profiles), Times.Once);
 }