public void Test_CreateAndGetPlace()
 {
     //arrange
     var placeRepository = new PlacesRepository(_connectionString);
     var place = TestHelper.GenerateTestPlace();
     //act
     placeRepository.Create(place);
     var resultPlace = placeRepository.Get(place.Id);
     //asserts
     Assert.IsTrue(place.Title.Equals(resultPlace.Title));
 }
 public void Test_DeletePlace()
 {
     //arrange
     var placeRepository = new PlacesRepository(_connectionString);
     var place = TestHelper.GenerateTestPlace();
     placeRepository.Create(place);
     //act
     placeRepository.Delete(place.Id);
     //assert
     placeRepository.Get(place.Id);
 }
 public void Test_GetNotExistingUser()
 {
     //arrange
     var placeRepository = new PlacesRepository(_connectionString);
     var place = TestHelper.GenerateTestPlace();
     //act
     placeRepository.Get(place.Id);
 }
        public void Test_UpdatePlace()
        {
            //arrange
            var placeRepository = new PlacesRepository(_connectionString);
            var id = Guid.NewGuid();
            var place = TestHelper.GenerateTestPlace(id);
            placeRepository.Create(place);

            var updPlace = TestHelper.GenerateTestPlace(id);
            //act
            placeRepository.Update(updPlace);
            //asserts
            Assert.IsTrue(updPlace.Title.Equals(placeRepository.Get(place.Id).Title));
        }