public void GivenAParkinglotService_WhenCreateParkinglot_ThenReposotoryReceivedNewParkinglot()
        {
            //Given
            Parkinglot newParkinglot = new Parkinglot();

            IParkinglotRepository parkinglotRepository = Substitute.For <IParkinglotRepository>();
            var parkinglotService = new ParkinglotService(parkinglotRepository);
            //When
            var returnParkinglot = parkinglotService.CreateParkinglot(newParkinglot);

            //Then
            parkinglotRepository.Received().SaveNewParkinglot(newParkinglot);
        }
        public void GivenAParkinglotService_WhenCreateParkinglot_ThenANewParkinglotObjectIsReturned()
        {
            //Given
            Parkinglot newParkinglot = new Parkinglot();

            IParkinglotRepository parkinglotRepository = Substitute.For <IParkinglotRepository>();
            var parkinglotService = new ParkinglotService(parkinglotRepository);
            //When
            var returnParkinglot = parkinglotService.CreateParkinglot(newParkinglot);

            //Then
            Assert.IsType <Parkinglot>(returnParkinglot);
        }