public void Create_ShouldReturnCreated()
        {
            //arrange
            Place place = TestDataHelper.GeneratePlace();
            var placeController = new PlaceController(TestDataHelper.GetIPlaceRepositoryMock(place));

            //act
            IHttpActionResult response = placeController.Create(place);

            //assert
            Assert.IsTrue(response is CreatedNegotiatedContentResult<Place>);
        }
        public void Delete_ShouldReturnOk()
        {
            //arrange
            Place place = TestDataHelper.GeneratePlace();
            var placeController = new PlaceController(TestDataHelper.GetIPlaceRepositoryMock(place));

            //act
            placeController.Create(place);
            IHttpActionResult response = placeController.Delete(place.Id);

            //assert
            Assert.IsTrue(response is OkResult);
        }
        public void Create_WithNullField_ShouldReturnBadRequest()
        {
            //arrange
            Place place = TestDataHelper.GeneratePlace();
            place.Address = null;
            var placeController = new PlaceController(TestDataHelper.GetIPlaceRepositoryMock(place));

            //act
            IHttpActionResult response = placeController.Create(place);

            //assert
            Assert.IsTrue(response is BadRequestErrorMessageResult);
        }