public static ResourceStore CreateWithStartingResources(ResourceType type, int initialAmount) { ResourceStore store = new ResourceStore(type); store.PayIn(new ResourceCost(type, initialAmount)); return(store); }