public void Verify_Add_Should_AddTheEntityToTheContext()
 {
     // Arrange
     Mock<IDbSet<Location>> mockSetLocations;
     var mockContext = LocationsMockingSetup.DoMockingSetupForContext(false, out mockSetLocations);
     var repository = new LocationsRepository(mockContext.Object);
     var locations = new Location { Active = true, CustomKey = "SALVATORE-RAA", };
     // Act
     repository.Add(locations);
     // Assert
     mockSetLocations.Verify(x => x.Add(locations), Times.Once);
 }
        public void Verify_Add_Should_AddTheEntityToTheContext()
        {
            // Arrange
            Mock <IDbSet <Location> > mockSetLocations;
            var mockContext = LocationsMockingSetup.DoMockingSetupForContext(false, out mockSetLocations);
            var repository  = new LocationsRepository(mockContext.Object);
            var locations   = new Location {
                Active = true, CustomKey = "SALVATORE-RAA",
            };

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