private static (UnitSpecification specification, UnitStack stack) SetUp(uint count) { var unitSpecification = new SlaveSpecification(); var stackSpecification = new UnitStackSpecification(unitSpecification, count); var stack = new UnitStack(stackSpecification); var resources = count * unitSpecification.HireCost; stack.Consume(resources); return(unitSpecification, stack); }