public void WhenIsValidYearWithValidYear_ReturnsTrue() { var target = new VehicleManufacturerRepository(); bool actual = target.IsValidYear(2010); Assert.True(actual); }
public void WhenIsValidYearWithInvalidYear_ReturnsFalse() { var target = new VehicleManufacturerRepository(); bool actual = target.IsValidYear(3015); Assert.False(actual); }
public void WhenIsValidYearWithInvalidYear_ReturnsFalse() { this.SetupResolverAndDatabase(); VehicleManufacturerRepository target = new VehicleManufacturerRepository(this.dbContext); bool actual = target.IsValidYear(3015); Assert.False(actual); }