PHP specific constructs, functions, aproaches etc. which are quite tricky, but usefull sometimes...
public function testShouldChangeInternalAttributeValue()
{
$old = new Tenant('all', 'old')
// | |
// Concept Definition | |
// | |
type ConceptDefinition = { | |
Service: Service // domain * context | |
Instances: ServiceInstance list | |
Downstream: Downstream | |
} |
module Color = | |
/// Transform GUID into a color RGBA hex | |
let ofGuid (guid: Guid) = | |
let hash = function | |
| minimum when minimum <= 0 -> "00" | |
| maximum when maximum >= 255 -> "FF" | |
| number -> | |
match number.ToString("X") with | |
| short when short.Length < 2 -> sprintf "0%s" short | |
| hex -> hex |