public void Verify_Add_Should_AddTheEntityToTheContext()
 {
     // Arrange
     Mock<IDbSet<Profile>> mockSetProfiles;
     var mockContext = ProfilesMockingSetup.DoMockingSetupForContext(false, out mockSetProfiles);
     var repository = new ProfilesRepository(mockContext.Object);
     var profiles = new Profile { Active = true, CustomKey = "SALVATORE-RAA", };
     // Act
     repository.Add(profiles);
     // Assert
     mockSetProfiles.Verify(x => x.Add(profiles), Times.Once);
 }
        public void Verify_Add_Should_AddTheEntityToTheContext()
        {
            // Arrange
            Mock <IDbSet <Profile> > mockSetProfiles;
            var mockContext = ProfilesMockingSetup.DoMockingSetupForContext(false, out mockSetProfiles);
            var repository  = new ProfilesRepository(mockContext.Object);
            var profiles    = new Profile {
                Active = true, CustomKey = "SALVATORE-RAA",
            };

            // Act
            repository.Add(profiles);
            // Assert
            mockSetProfiles.Verify(x => x.Add(profiles), Times.Once);
        }