feat: Adds cooling interpolation tests.
This commit is contained in:
@@ -1,6 +1,16 @@
|
||||
import Models
|
||||
import Validations
|
||||
|
||||
extension Capacity.Cooling: AsyncValidatable {
|
||||
public var body: some AsyncValidation<Self> {
|
||||
AsyncValidator.accumulating {
|
||||
AsyncValidator.greaterThan(\.total, 0)
|
||||
AsyncValidator.greaterThan(\.sensible, 0)
|
||||
AsyncValidator.greaterThanOrEquals(\.total, \.sensible)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
extension Capacity.ManufacturersCooling: AsyncValidatable {
|
||||
public var body: some AsyncValidation<Self> {
|
||||
AsyncValidator.accumulating {
|
||||
|
||||
Reference in New Issue
Block a user