public void GetBikeTypeByID_ReturnsABikeType() { //Arrange var bikeService = new BikeService(_mockQueries.Object, _mockStorage.Object); //Act var result = bikeService.GetBikeTypeByID(1); //Assert Assert.IsInstanceOfType(result, typeof(BikeType)); _mockQueries.Verify(x => x.GetBikeTypeByID(It.IsAny <int>()), Times.Once); }