Example #1
0
        public void AddScooter_ScooterExists_ThrowsException()
        {
            _scooterRepositoryMock.Setup(x => x.GetById(It.IsAny <string>())).Returns(new Scooter("id", 1));

            _scooterService.Invoking(x => x.AddScooter("id", 1)).Should().Throw <DuplicateScooterException>();
        }