예제 #1
0
        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);
        }