public void GetFees_ThrowsException_ForUnknownVehicle() { // Arrange var vehicle = Substitute.For <IStandardCar>(); IFeeManager sut = CreateSut(); // Act // Assert Assert.Throws <CarDoesNotHaveAnyFeesException>(() => sut.GetFees(vehicle)); }
public void CreateSut_CreatesVehicleFees_ForVehicle() { // Arrange var vehicle = Substitute.For <IStandardCar>(); IFeeManager sut = CreateSut(); // Act sut.CreateFees(vehicle); // Assert IVehicleFees actual = sut.GetFees(vehicle); Assert.NotNull(actual); }