public async void AddAsync_validParameters_ReturnsNull() { var repository = new Mock <IVehicleModelRepository>(); var classForTesting = new VehicleModelService(repository.Object); var result = await classForTesting.AddAsync(Guid.NewGuid(), Guid.NewGuid(), "test", "test"); result.Should().Be(0); }
public async void AddAsync_InvalidParameters_ReturnsMinus3() { //arrange var repository = new Mock <IVehicleModelRepository>(); var classForTesting = new VehicleModelService(repository.Object); //3. test var result = await classForTesting.AddAsync(Guid.Empty, Guid.NewGuid(), "test", "test"); result.Should().Be(-3); }