Add school dress rules tab in Management with tests.
This commit is contained in:
@@ -112,6 +112,21 @@ public static class Appropriateness
|
||||
return false;
|
||||
}
|
||||
|
||||
if (rules.Color.Equals(ColorPolicies.WhiteTopBlackBottom, StringComparison.Ordinal))
|
||||
{
|
||||
if (def.Layers.Contains(ApparelLayers.Top, StringComparer.Ordinal)
|
||||
&& !color.Equals("White", StringComparison.Ordinal))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
if (def.Layers.Contains(ApparelLayers.Bottom, StringComparer.Ordinal)
|
||||
&& !color.Equals("Black", StringComparison.Ordinal))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user